[Xfce4-commits] <xfce4-panel:xfce-4.8> Systray: Fix disappearing icons when drawing at 0, 0 (bug #7057).

Nick Schermer noreply at xfce.org
Sat Apr 16 14:10:02 CEST 2011


Updating branch refs/heads/xfce-4.8
         to 323e0abfbe3a00b7961311098877db4a139c6788 (commit)
       from cc6edd093702126974d84dadffd87128a3531610 (commit)

commit 323e0abfbe3a00b7961311098877db4a139c6788
Author: Nick Schermer <nick at xfce.org>
Date:   Sat Apr 16 14:06:35 2011 +0200

    Systray: Fix disappearing icons when drawing at 0,0 (bug #7057).
    
    (cherry picked from commit 64243bb8388429a284bf74653fa1f2f1c1f03d70)

 plugins/systray/systray.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/systray/systray.c b/plugins/systray/systray.c
index 2124d55..4a2d23c 100644
--- a/plugins/systray/systray.c
+++ b/plugins/systray/systray.c
@@ -585,7 +585,7 @@ systray_plugin_box_expose_event_icon (GtkWidget *child,
       alloc = &child->allocation;
 
       /* skip hidden (see offscreen in box widget) icons */
-      if (alloc->x > 0 && alloc->y > 0)
+      if (alloc->x > -1 && alloc->y > -1)
         {
           gdk_cairo_set_source_pixmap (cr, gtk_widget_get_window (child),
                                        alloc->x, alloc->y);



More information about the Xfce4-commits mailing list