[Xfce4-commits] [xfce/xfce4-panel] 01/01: Fix panel being initially hidden with intelligent autohiding

noreply at xfce.org noreply at xfce.org
Thu Nov 27 02:57:46 CET 2014


This is an automated email from the git hooks/post-receive script.

andrzejr pushed a commit to branch master
in repository xfce/xfce4-panel.

commit 2c86befe0b891a322dfa0742101a03ca15079484
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Thu Nov 27 01:23:04 2014 +0100

    Fix panel being initially hidden with intelligent autohiding
    
    After closing the panel preferences, the panel was always hidden when
    intelligent autohiding was selected. This patch adds a check whether the
    currently active window actually overlaps with the panel and only hides
    it in case it does.
---
 panel/panel-window.c |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/panel/panel-window.c b/panel/panel-window.c
index e7d670c..52f3186 100644
--- a/panel/panel-window.c
+++ b/panel/panel-window.c
@@ -2911,8 +2911,14 @@ panel_window_thaw_autohide (PanelWindow *window)
   window->autohide_block--;
 
   if (window->autohide_block == 0
-      && window->autohide_state != AUTOHIDE_DISABLED)
-    panel_window_autohide_queue (window, AUTOHIDE_POPDOWN);
+      && window->autohide_state != AUTOHIDE_DISABLED) {
+    /* simulate a geometry change to check for overlapping windows with intelligent hiding */
+    if (window->autohide_behavior == AUTOHIDE_BEHAVIOR_INTELLIGENTLY)
+      panel_window_active_window_geometry_changed (window->wnck_active_window, window);
+    /* otherwise just hide the panel */
+    else
+      panel_window_autohide_queue (window, AUTOHIDE_POPDOWN);
+  }
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list