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 784611 - Event handler called twice if widget has focus and input grab (for unhandled events)
Event handler called twice if widget has focus and input grab (for unhandled ...
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: .General
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2017-07-06 13:19 UTC by Benjamin Berg
Modified: 2018-05-02 18:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Simple script to reproduce duplicate event delivery (671 bytes, text/plain)
2017-07-06 13:19 UTC, Benjamin Berg
Details

Description Benjamin Berg 2017-07-06 13:19:59 UTC
Created attachment 355013 [details]
Simple script to reproduce duplicate event delivery

If a widget has both the focus and has the input grabbed then unhandeld events will be delivered twice. This happens both on Wayland and X11 (using Xwayland).

See attached small python script as a test case. After 5 seconds a grab will be added and then each key press is printed twice.

I think that this must have changed not long ago as I had not seen the duplicate events earlier.
Comment 1 GNOME Infrastructure Team 2018-05-02 18:41:16 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/850.