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

noreply at xfce.org noreply at xfce.org
Mon Feb 27 22:51:51 CET 2017


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

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

commit 9acd890e6b5e919f811ee8b97726f8e5b5762c92
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Mon Feb 27 21:13:39 2017 +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 1e8a024..f3a7084 100644
--- a/panel/panel-window.c
+++ b/panel/panel-window.c
@@ -3006,8 +3006,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