google-code-export / lxpanelx

Automatically exported from code.google.com/p/lxpanelx
Other
1 stars 0 forks source link

iconify all windows doesn't check the event type, and triggers "double-click" event as a separate button_press #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. right click on the "iconify all windows" applet, click properties, check the 
"alternate iconify/shade..." box, press Close
2. make sure you have some windows open
3. double-click the button

What is the expected output? What do you see instead?
i expect it to trigger 2 utton clicks.
it triggers 3 clicks instead, because double-click is sent as a separate 
button_press event

What version of the product are you using? On what operating system?

Please provide any additional information below.

patch:

Index: src/plugins/wincmd.c
===================================================================
--- src/plugins/wincmd.c        (revision 574)
+++ src/plugins/wincmd.c        (working copy)
@@ -132,7 +132,7 @@
         return TRUE;

     /* Left-click to iconify. */
-    if (event->button == 1)
+    if (event->button == 1 && event->type == GDK_BUTTON_PRESS)
     {
         GdkScreen* screen = gtk_widget_get_screen(widget);
         static GdkAtom atom = 0;

Original issue reported on code.google.com by waker...@gmail.com on 3 Nov 2012 at 11:11

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r589.

Original comment by igeekl...@gmail.com on 6 Nov 2012 at 3:49