[Xfce4-commits] <xfce4-panel:master> Allow one zero value in the tasklist button event.

Nick Schermer noreply at xfce.org
Tue Feb 22 23:34:01 CET 2011


Updating branch refs/heads/master
         to 7db2f212d4b8ccf46f8d484dfa850914e37c327b (commit)
       from 896733159ad8731cbac973971c58977116b758e1 (commit)

commit 7db2f212d4b8ccf46f8d484dfa850914e37c327b
Author: Nick Schermer <nick at xfce.org>
Date:   Tue Feb 22 23:28:11 2011 +0100

    Allow one zero value in the tasklist button event.

 plugins/tasklist/tasklist-widget.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c
index 658f56c..0ff7db6 100644
--- a/plugins/tasklist/tasklist-widget.c
+++ b/plugins/tasklist/tasklist-widget.c
@@ -2590,8 +2590,9 @@ xfce_tasklist_button_button_release_event (GtkWidget         *button,
   if (event->type == GDK_BUTTON_RELEASE
       && !xfce_taskbar_is_locked (child->tasklist)
       && event->button == 1
-      && event->x > 0 && event->x < button->allocation.width
-      && event->y > 0 && event->y < button->allocation.height)
+      && !(event->x == 0 && event->y == 0) /* 0,0 = outside the widget in Gtk */
+      && event->x >= 0 && event->x < button->allocation.width
+      && event->y >= 0 && event->y < button->allocation.height)
     {
       xfce_tasklist_button_activate (child, event->time);
     }



More information about the Xfce4-commits mailing list