码迷,mamicode.com
首页 > 其他好文 > 详细

deepin gala窗口管理器关闭动画

时间:2016-07-30 13:28:52      阅读:319      评论:0      收藏:0      [点我收藏+]

标签:

deepin中有两个管理器,一个基于metacity,另一个基于gala,可以用super+tab来进行切换。metacity是不带动画的,而 gala是带动画效果的。但这里有个问题,不知道有些同学上的环境有没有这个问题,metacity上,动画虽然关闭了,但手动窗口变得奇卡,特别在高分 辨率的显示器上,拖动firefox简直惨不忍睹。而gala上就不会有这个问题,但动画效果实现难看。。。我的机器的配置不高,5年前的机器了,那动画 效果,咳咳。。。几乎可以逼我把DEEPIN卸载了。

这两天刚好有点时间,从github上下了deepin-wm的源码来看了下,找到了一个相关的配置项,但编译不过(自从毕业去搞java后就再也没有多 碰C的东西了,何况deepin-wm还是用vala来写的)。于是开始在系统中寻找那个文件中有这个配置项。最后终于找到了:在/usr/share /glib-2.0/schemas目录下面,但把所有的animation项都改为false之后,仍然不生效:

./com.deepin.wrap.gnome.desktop.interface.gschema.xml:    <key name="enable-animations" type="b">
./com.deepin.wrap.gnome.desktop.interface.gschema.xml:      <summary>Enable Animations</summary>
./com.deepin.wrap.gnome.desktop.interface.gschema.xml:        Whether animations should be displayed. Note: This is a global key,
./99_deepin-default-gsettings.gschema.override:[com.deepin.wrap.pantheon.desktop.gala.animations]
./99_deepin-default-gsettings.gschema.override:enable-animations=false
./org.gnome.desktop.interface.gschema.xml:    <key name="enable-animations" type="b">
./org.gnome.desktop.interface.gschema.xml:      <summary>Enable Animations</summary>
./org.gnome.desktop.interface.gschema.xml:        Whether animations should be displayed. Note: This is a global key,
./com.deepin.xsettings.gschema.xml:    <key type="b" name="gtk-enable-animations">
./com.deepin.xsettings.gschema.xml:      <summary>Enable Animations</summary>
./com.deepin.xsettings.gschema.xml:        Whether animations should be displayed. Note: This is a global key,
./com.deepin.wrap.gnome.metacity.gschema.xml:      <description>If true, Metacity will give the user less feedback by using wireframes, avoiding animations, or other means. This is a significant reduction in usability for many users, but may allow legacy applications to continue working, and may also be a useful tradeoff for terminal servers. However, the wireframe feature is disabled when accessibility is on.</description>
匹配到二进制文件 ./gschemas.compiled
./com.deepin.wrap.pantheon.desktop.gala.gschema.xml:        <schema path="/com/deepin/wrap/pantheon/desktop/gala/animations/" id="com.deepin.wrap.pantheon.desktop.gala.animations" gettext-domain="deepin-wm">
./com.deepin.wrap.pantheon.desktop.gala.gschema.xml:                <key type="b" name="enable-animations">
./com.deepin.wrap.pantheon.desktop.gala.gschema.xml:                        <summary>Enable Animations</summary>
./com.deepin.wrap.pantheon.desktop.gala.gschema.xml:                        <description>Whether animations should be displayed. Note: This is a global key, it changes the behaviour of the window manager, the panel etc.</description>
./com.deepin.wrap.pantheon.desktop.gala.gschema.xml:                        <summary>Duration of the snap animation as used by maximize/unmaximize</summary>
./com.deepin.wrap.pantheon.desktop.gala.gschema.xml:                        <summary>Duration of the close animation</summary>
./com.deepin.wrap.pantheon.desktop.gala.gschema.xml:                        <summary>Duration of the minimize animation</summary>
./com.deepin.wrap.pantheon.desktop.gala.gschema.xml:                        <summary>Duration of the workspace switch animation</summary>
./com.deepin.wrap.pantheon.desktop.gala.gschema.xml:                        <summary>Duration of the menu mapping animation</summary>
./com.deepin.wrap.pantheon.desktop.gala.gschema.xml:                        <summary>Duration of the multitasking view toggle animation</summary>

后面又看了些GSetting的东西,发现修改配置后还需要用glib-compile-schemas给编译成二进制文件(gschemas.compiled)后才能生效:

sudo glib-compile-schemas /usr/share/glib-2.0/schemas

最后super+tab切换一下,成功关闭动画,效率大幅提升。。。
顺便带一句,里面其它配置项也可以修改哦。。。。

deepin gala窗口管理器关闭动画

标签:

原文地址:http://www.cnblogs.com/mosmith/p/5720722.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!