[Xfce4-commits] <xfce4-panel:master> Systray: Leave the frame thickness out when hidden.
Nick Schermer
noreply at xfce.org
Sun Sep 11 14:36:01 CEST 2011
Updating branch refs/heads/master
to 3bb8fea830be758a8af556427ef81f41782ef39c (commit)
from 70d376e5485c7208012adb2aa2bc1b3f74f274d2 (commit)
commit 3bb8fea830be758a8af556427ef81f41782ef39c
Author: Nick Schermer <nick at xfce.org>
Date: Sun Sep 11 14:33:47 2011 +0200
Systray: Leave the frame thickness out when hidden.
plugins/systray/systray.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/plugins/systray/systray.c b/plugins/systray/systray.c
index 69a7d3e..94b084e 100644
--- a/plugins/systray/systray.c
+++ b/plugins/systray/systray.c
@@ -525,7 +525,8 @@ systray_plugin_size_changed (XfcePanelPlugin *panel_plugin,
* behind the allocated size when resizing and during startup, we
* correct the maximum size set by the user with the size the panel
* will most likely allocated */
- border += MAX (frame->style->xthickness, frame->style->ythickness);
+ if (plugin->show_frame)
+ border += MAX (frame->style->xthickness, frame->style->ythickness);
systray_box_set_size_alloc (XFCE_SYSTRAY_BOX (plugin->box), size - 2 * border);
return TRUE;
More information about the Xfce4-commits
mailing list