[Xfce4-commits] [xfce/xfce4-panel] 01/01: Fix panel hiding (intelligently) with open menus

noreply at xfce.org noreply at xfce.org
Sun Dec 7 00:21:42 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 3c995cac169657e24409849d33e7adca2ce28cfe
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Sun Dec 7 00:05:50 2014 +0100

    Fix panel hiding (intelligently) with open menus
---
 panel/panel-window.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/panel/panel-window.c b/panel/panel-window.c
index 52f3186..52f9f09 100644
--- a/panel/panel-window.c
+++ b/panel/panel-window.c
@@ -2162,7 +2162,8 @@ panel_window_active_window_geometry_changed (WnckWindow  *active_window,
 
   /* only react to active window geometry changes if we are doing
    * intelligent autohiding */
-  if (window->autohide_behavior == AUTOHIDE_BEHAVIOR_INTELLIGENTLY)
+  if (window->autohide_behavior == AUTOHIDE_BEHAVIOR_INTELLIGENTLY
+      && window->autohide_block == 0)
     {
       if (wnck_window_get_window_type (active_window) != WNCK_WINDOW_DESKTOP)
         {
@@ -2363,7 +2364,7 @@ panel_window_set_autohide_behavior (PanelWindow     *window,
   /* create an autohide window only if we are autohiding at all */
   if (window->autohide_behavior != AUTOHIDE_BEHAVIOR_NEVER)
     {
-      /* create an authoide window; doing this only when it doesn't exist
+      /* create an autohide window; doing this only when it doesn't exist
        * yet allows us to transition between "always autohide" and "intelligently
        * autohide" without recreating the window */
       if (window->autohide_window == NULL)

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


More information about the Xfce4-commits mailing list