From: Michael Natterer Date: Tue, 3 Jun 2003 18:47:20 +0000 (+0000) Subject: reenabled button_release events for xinput devices. (#113948) X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=ace98abaaafc196ffdc764bf04f94a791348f7e6;p=~andy%2Fgtk reenabled button_release events for xinput devices. (#113948) 2003-06-03 Michael Natterer * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events): reenabled button_release events for xinput devices. (#113948) --- diff --git a/ChangeLog b/ChangeLog index cc33f2067..c767f4bd8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-06-03 Michael Natterer + + * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events): + reenabled button_release events for xinput devices. (#113948) + 2003-06-03 Christian Rose * configure.in: Added "li" to ALL_LINGUAS. @@ -23,8 +28,8 @@ Mon Jun 2 18:58:54 2003 Owen Taylor an example to the docs. (#98427) 2003-05-30 Murray Cumming - - * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with + + * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with gtk_alignment_get_padding() and gtk_aligment_set_padding(). This uses the new private data system - see g_type_class_add_private() in gtk_alignment_class_init() and the use of GTK_ALIGNMENT_GET_PRIVATE(). diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index cc33f2067..c767f4bd8 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2003-06-03 Michael Natterer + + * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events): + reenabled button_release events for xinput devices. (#113948) + 2003-06-03 Christian Rose * configure.in: Added "li" to ALL_LINGUAS. @@ -23,8 +28,8 @@ Mon Jun 2 18:58:54 2003 Owen Taylor an example to the docs. (#98427) 2003-05-30 Murray Cumming - - * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with + + * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with gtk_alignment_get_padding() and gtk_aligment_set_padding(). This uses the new private data system - see g_type_class_add_private() in gtk_alignment_class_init() and the use of GTK_ALIGNMENT_GET_PRIVATE(). diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index cc33f2067..c767f4bd8 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2003-06-03 Michael Natterer + + * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events): + reenabled button_release events for xinput devices. (#113948) + 2003-06-03 Christian Rose * configure.in: Added "li" to ALL_LINGUAS. @@ -23,8 +28,8 @@ Mon Jun 2 18:58:54 2003 Owen Taylor an example to the docs. (#98427) 2003-05-30 Murray Cumming - - * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with + + * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with gtk_alignment_get_padding() and gtk_aligment_set_padding(). This uses the new private data system - see g_type_class_add_private() in gtk_alignment_class_init() and the use of GTK_ALIGNMENT_GET_PRIVATE(). diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index cc33f2067..c767f4bd8 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2003-06-03 Michael Natterer + + * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events): + reenabled button_release events for xinput devices. (#113948) + 2003-06-03 Christian Rose * configure.in: Added "li" to ALL_LINGUAS. @@ -23,8 +28,8 @@ Mon Jun 2 18:58:54 2003 Owen Taylor an example to the docs. (#98427) 2003-05-30 Murray Cumming - - * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with + + * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with gtk_alignment_get_padding() and gtk_aligment_set_padding(). This uses the new private data system - see g_type_class_add_private() in gtk_alignment_class_init() and the use of GTK_ALIGNMENT_GET_PRIVATE(). diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index cc33f2067..c767f4bd8 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2003-06-03 Michael Natterer + + * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events): + reenabled button_release events for xinput devices. (#113948) + 2003-06-03 Christian Rose * configure.in: Added "li" to ALL_LINGUAS. @@ -23,8 +28,8 @@ Mon Jun 2 18:58:54 2003 Owen Taylor an example to the docs. (#98427) 2003-05-30 Murray Cumming - - * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with + + * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with gtk_alignment_get_padding() and gtk_aligment_set_padding(). This uses the new private data system - see g_type_class_add_private() in gtk_alignment_class_init() and the use of GTK_ALIGNMENT_GET_PRIVATE(). diff --git a/gdk/x11/gdkinput-x11.c b/gdk/x11/gdkinput-x11.c index 24886f13e..bfbadc5f5 100644 --- a/gdk/x11/gdkinput-x11.c +++ b/gdk/x11/gdkinput-x11.c @@ -267,7 +267,7 @@ _gdk_input_common_find_events(GdkWindow *window, XEventClass class; i = 0; - if (mask & GDK_BUTTON_PRESS_MASK || mask & GDK_BUTTON_RELEASE_MASK) + if (mask & GDK_BUTTON_PRESS_MASK) { DeviceButtonPress (gdkdev->xdevice, gdkdev->buttonpress_type, class); @@ -277,6 +277,13 @@ _gdk_input_common_find_events(GdkWindow *window, if (class != 0) classes[i++] = class; } + if (mask & GDK_BUTTON_RELEASE_MASK) + { + DeviceButtonRelease (gdkdev->xdevice, gdkdev->buttonrelease_type, + class); + if (class != 0) + classes[i++] = class; + } if (mask & GDK_POINTER_MOTION_MASK) { DeviceMotionNotify (gdkdev->xdevice, gdkdev->motionnotify_type, class);