File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -830,6 +830,18 @@ class Guake(SimpleGladeApp):
830
830
# future we might create a field to select which monitor you
831
831
# wanna use
832
832
window_rect = screen .get_monitor_geometry (0 )
833
+ if os .environ .get ('DESKTOP_SESSION' ) == "ubuntu" :
834
+ unity_hide = self .client .get_int (KEY ('/apps/compiz-1/plugins/' \
835
+ 'unityshell/screen0/options/launcher_hide_mode' ))
836
+ # launcher_hide_mode = 1 => autohide
837
+ if unity_hide != 1 :
838
+ # Size of the icons for Unity in Ubuntu <= 12.04
839
+ # TODO Ubuntu 12.10 use dconf :
840
+ # /org/compiz/profiles/unity/plugins/unityshell/icon-size
841
+ unity_icon_size = self .client .get_int (KEY ('/apps/compiz-1/' \
842
+ 'plugins/unityshell/screen0/options/icon_size' ))
843
+ unity_dock = unity_icon_size + 17
844
+ window_rect .width = window_rect .width - unity_dock
833
845
total_width = window_rect .width
834
846
window_rect .height = window_rect .height * height / 100
835
847
window_rect .width = window_rect .width * width / 100
You can’t perform that action at this time.
0 commit comments