After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 650382 - GtkButton uses wrong values in grab
GtkButton uses wrong values in grab
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
3.0.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2011-05-17 09:29 UTC by Alexander Larsson
Modified: 2011-05-17 11:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alexander Larsson 2011-05-17 09:29:35 UTC
GtkButton::gtk_real_button_activate does:

if (gdk_device_grab (device, priv->event_window,
       GDK_OWNERSHIP_WINDOW, TRUE,
       GDK_KEY_PRESS | GDK_KEY_RELEASE,
       NULL, time) == GDK_GRAB_SUCCESS)

But it should use GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK as mask, not the nonsensical non-mask GDK_KEY_PRESS | GDK_KEY_RELEASE.
Comment 1 Matthias Clasen 2011-05-17 10:51:22 UTC
good catch
Comment 2 Carlos Garnacho 2011-05-17 11:19:10 UTC
Yikes, my bad very likely... just pushed a fix