[Xfce4-commits] <xfce4-panel:master> Increase size of the autohide window by 1 in each direction.

Jannis Pohlmann noreply at xfce.org
Thu May 26 02:16:01 CEST 2011


Updating branch refs/heads/master
         to 13dc58dac41d744108765a3a754ddf272358714b (commit)
       from 815a2da117235e6e8c1c6524287161cdc3cb1e6c (commit)

commit 13dc58dac41d744108765a3a754ddf272358714b
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Thu May 26 02:13:02 2011 +0200

    Increase size of the autohide window by 1 in each direction.
    
    For some reason the autohide window would not pop up if I moved the
    mouse to the very edge of the screen (last pixel in any direction). So
    this commit increases the window size by 1 in each direction
    independently of whether it is located at the top/bottom/right/left of
    the screen.
    
    I wouldn't be surprised if there is a better solution. Nick?

 panel/panel-window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/panel/panel-window.c b/panel/panel-window.c
index c3f1347..961ce52 100644
--- a/panel/panel-window.c
+++ b/panel/panel-window.c
@@ -1184,7 +1184,7 @@ panel_window_size_allocate (GtkWidget     *widget,
       /* position the autohide window */
       panel_window_size_allocate_set_xy (window, w, h, &x, &y);
       panel_base_window_move_resize (PANEL_BASE_WINDOW (window->autohide_window),
-                                     x, y, w, h);
+                                     x - 1 , y - 1, w + 2, h + 2);
     }
   else
     {



More information about the Xfce4-commits mailing list