[Xfce4-commits] <xfce4-panel:andrzejr/struts> Made autohide aware of struts.
Andrzej
noreply at xfce.org
Mon Apr 9 20:40:01 CEST 2012
Updating branch refs/heads/andrzejr/struts
to b516abc415ba31366f36643d7b613cc21ab184ff (commit)
from d151d3065dadbfa29abfd10afa999b1a3f48999d (commit)
commit b516abc415ba31366f36643d7b613cc21ab184ff
Author: Andrzej <ndrwrdck at gmail.com>
Date: Tue Apr 10 03:35:45 2012 +0900
Made autohide aware of struts.
Struts were incorrectly checked at offscreen location. Fixed.
panel/panel-window.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/panel/panel-window.c b/panel/panel-window.c
index 8d2794c..993b7e4 100644
--- a/panel/panel-window.c
+++ b/panel/panel-window.c
@@ -1220,7 +1220,10 @@ panel_window_size_request (GtkWidget *widget,
window->top_margin = window->bottom_margin = top = bottom = 0;
for (li = windows; li != NULL; li = li->next)
{
- panel_window_check_struts (li->data, alloc->x, alloc->x + alloc->width, &top, &bottom);
+ if (alloc->x != -9999)
+ panel_window_check_struts (li->data, alloc->x, alloc->x + alloc->width, &top, &bottom);
+ else
+ panel_window_check_struts (li->data, alloc->x + 9999, alloc->x + 9999 + alloc->width, &top, &bottom);
window->top_margin = MAX (window->top_margin, top);
window->bottom_margin = MAX (window->bottom_margin, bottom);
}
More information about the Xfce4-commits
mailing list