Generate double-click events. (#380421, Tommi Komulainen)

* gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
        Generate double-click events.  (#380421, Tommi Komulainen)
This commit is contained in:
Matthias Clasen 2006-12-21 16:33:29 +00:00
parent 168659a3b7
commit 34dc82c312
2 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2006-12-21 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
Generate double-click events. (#380421, Tommi Komulainen)
* gdk/x1/gdkinput-xfree.c (_gdk_input_configure_event):
(_gdk_input_enter_event): Correct return_if_fail checks.
(#379803, Tommi Komulainen)

View File

@ -579,6 +579,10 @@ _gdk_input_common_other_event (GdkEvent *event,
event->button.state = gdk_input_translate_state(xdbe->state,xdbe->device_state);
event->button.button = xdbe->button;
if (event->button.type == GDK_BUTTON_PRESS)
_gdk_event_button_generate (gdk_drawable_get_display (event->button.window),
event);
GDK_NOTE (EVENTS,
g_print ("button %s:\t\twindow: %ld device: %ld x,y: %f %f button: %d\n",
(event->button.type == GDK_BUTTON_PRESS) ? "press" : "release",