SDL/src/video/x11
Ryan C. Gordon f5a38f234b x11: specify event mask for buttons when grabbing pointer (thanks, Stas!).
This fixes a strange corner case (notes appended below), and should be
safe to do anyhow.

Fixes Bugzilla #3674.

"I did more tests.
It appears the bug only happens if there is
another window on the screen that has "always
on top" property. For me it is xawtv - it is
always opened in a screen corner. Closing
xawtv or removing "always on top" property
from it makes the problem to go away.
Plus, it doesn't appear like the buttons are
not delivered at all. It appears that instead
the button presses are delivered on some mouse
positions, but not delivered when you move the
mouse to other part of the window... So this is
really weird and is likely somewhere deep in the
Xorg.
Maybe somehow it happens that the cursor is
actually above the xawtv window, but, because
my app uses grab, it is not visible there, and
in that case the events are not delivered to
my app?
But with my patch the button events are
always delivered flawlessly, it seems.

Hmm, and that indeed seems to explain my problem:
if the mask is set properly and my app uses
grab, then, even if the mouse is above some
other window, the events would still be delivered
to the grabbing app, which is what actually wanted
because my app uses relative mouse mode, so it
doesn't know the pointer can cross some other window
(my app draws the pointer itself).
So my current theory is that my patch only enforces
the mouse grab, which otherwise can be tricked by
some other window preventing the button events
delivery (but motion events are still delivered
via xinput2, which makes it all look very obscure)."
2017-08-21 00:42:06 -04:00
..
edid-parse.c Fixed edid parsing code for older gcc compilers 2016-12-12 09:18:42 -08:00
edid.h Fixed edid parsing code for older gcc compilers 2016-12-12 09:18:42 -08:00
imKStoUCS.c x11: Updated imKStoUCS.* to latest from x.org. 2016-02-08 01:08:21 -05:00
imKStoUCS.h x11: Updated imKStoUCS.* to latest from x.org. 2016-02-08 01:08:21 -05:00
SDL_x11clipboard.c x11: Make a separate unmapped window to own clipboard selections. 2017-07-31 13:49:22 -04:00
SDL_x11clipboard.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11dyn.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11dyn.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11events.c Fixed bug 2293 - Precise scrolling events 2017-08-14 21:28:04 -07:00
SDL_x11events.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11framebuffer.c Fixed bug 1859 - No SDL_VIDEORESIZE event generated when the window manager sets the window size. 2017-04-03 13:32:53 -07:00
SDL_x11framebuffer.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11keyboard.c Changed messages about not recognized keys to include discourse link. 2017-05-26 22:45:52 +02:00
SDL_x11keyboard.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11messagebox.c x11: Patched to compile. 2017-08-13 01:00:01 -04:00
SDL_x11messagebox.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11modes.c Fixed bug 3722 - Fall back to xinerama/xvidmode if xrandr modes initialization fails 2017-08-02 10:28:13 -07:00
SDL_x11modes.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11mouse.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11mouse.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11opengl.c opengl: Add support for [GLX|WGL]_ARB_create_context_robustness. 2017-08-19 15:02:03 -04:00
SDL_x11opengl.h opengl: Add support for [GLX|WGL]_ARB_create_context_robustness. 2017-08-19 15:02:03 -04:00
SDL_x11opengles.c Fixed bug 3690 - SDL2 KMS/DRM render context support 2017-08-02 10:22:48 -07:00
SDL_x11opengles.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11shape.c Removed unused internal window shape functions. 2017-05-25 23:00:43 +02:00
SDL_x11shape.h Removed unused internal window shape functions. 2017-05-25 23:00:43 +02:00
SDL_x11sym.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11touch.c Fixed bug 3583 - X11 touch device can be permanently lost 2017-02-11 11:14:48 -08:00
SDL_x11touch.h Fixed bug 3583 - X11 touch device can be permanently lost 2017-02-11 11:14:48 -08:00
SDL_x11video.c Fixed bug 3742 - minor warning fixes 2017-08-13 21:16:58 -07:00
SDL_x11video.h x11: Make a separate unmapped window to own clipboard selections. 2017-07-31 13:49:22 -04:00
SDL_x11window.c x11: specify event mask for buttons when grabbing pointer (thanks, Stas!). 2017-08-21 00:42:06 -04:00
SDL_x11window.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11xinput2.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_x11xinput2.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00