Red Hat Bugzilla – Bug 192975
Ignores ButtonRelease event if ButtonPressMask is not in XSelectInput() function
Last modified: 2014-06-18 05:08:17 EDT
Description of problem:
The window manager doesn't forwards any 'ButtonRelease' event to app, if
'ButtonPressMask' is not passed in 'XSelectInput()' Xlib routine.
Version-Release number of selected component (if applicable):
Just compile and run the app in the following comp.window.x thread:
Steps to Reproduce:
1. Try releasing mouse button on the app's window
2. If window gets destroyed, this means WM is fine
3. If window doesn't destroys, it means WM is not forwarding
'ButtonRelease' event is not forward to the app by WM, and hence unable to
catch any 'ButtonRelease' events. If 'ButtonPressMask' is also passed in the
'XSelectInput()' routine, then only 'ButtonRelease' event fires.
'ButtonRelease' event should be forwarded to the app, if 'ButtonReleaseMask'
is passed in 'XSelectInput()' Xlib routine.
I've also posted in GNOME Bugzilla, but as a comment to existing similar
looking Bugreport. Attached is the source code of the app I'm trying to
Created attachment 129946 [details]
The source code of the test app
This needs to be fixed upstream. Which bug did you comment on?
*** Bug 192976 has been marked as a duplicate of this bug. ***