mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
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:
parent
168659a3b7
commit
34dc82c312
@ -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)
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user