GNOME Bugzilla – Bug 556006
Leave & enter notify events are generated on button presses
Last modified: 2018-05-02 14:35:12 UTC
Please describe the problem: When I click on a widget (e.g. a drawing area) it receives leave and enter notify events before the button press event. (Happens with svn and 2.12.8) This may be related to pointer grabs - I think X will generate leave and enter notify events if the grab window is different from the current window. But if they are the same I don't think it should. I'll attach a test case. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 120430 [details] test case
Hi. I've found the same wrong behavior. At first I've thought that it could be a Vala problem [1], but now I discard it since I can get the same behavior from a C program --like you Damon, but I haven't seen this bug report before. I attach my own test case. Note a couple of things: * I only see errors with enter_notify_event --I see both enter & leave only in Ubuntu Natty with Unity and a transient window present, but it seems to be an Unity problem that furthermore isn't present in Ubuntu Oneiric. * If you only add GDK_LEAVE_NOTIFY_MASK | GDK_ENTER_NOTIFY_MASK to a GtkDrawingArea you can see the problem, but it doesn't appear if you also add GDK_BUTTON_PRESS_MASK. I can see the reported problem in the following systems: * Linux Mint 10 with Gnome 2.32.0 (of course without Unity) * Ubuntu Natty with Gnome 2.32.1 (without Unity; with it I see the problem commented above and only if the program has a transient window --more info in [1]) * Ubuntu Oneiric Alpha 3 with Gnome 3.1.4 (with Unity but without Compiz) Cheers! [1] https://bugzilla.gnome.org/show_bug.cgi?id=656288
Created attachment 193631 [details] testcase
-- 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/301.