mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-23 05:10:39 +02:00
dix: check for grab type before checking XI2 mask
if the grab type isn't XI2, grab->xi2mask is random. That random data may
have the enter/leave mask set, leading to events sent to the client that the
client can't handler.
Source of these errors:
_xgeWireToEvent: Unknown extension 131, this should never happen.
Simplest reproducer:
Start Xephyr, press button inside window, move out. As the pointer leaves
the Xephyr window, the errors appear.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
(cherry picked from commit 82939e0239)
This commit is contained in:
parent
3ac50dca8b
commit
2ac257d845
1 changed files with 1 additions and 1 deletions
|
|
@ -4641,7 +4641,7 @@ DeviceEnterLeaveEvent(DeviceIntPtr mouse,
|
|||
|
||||
filter = GetEventFilter(mouse, (xEvent *) event);
|
||||
|
||||
if (grab) {
|
||||
if (grab && grab->type == XI2) {
|
||||
Mask mask;
|
||||
|
||||
mask = xi2mask_isset(grab->xi2mask, mouse, type);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue