Input: Handle grabs with no Xi 1.x equivalent
Don't try to search for an Xi 1.x grab in CheckPassiveGrabsOnWindow for events with no Xi 1.x equivalent. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
This commit is contained in:
parent
690476250f
commit
30c8c7a863
|
@ -3415,9 +3415,9 @@ CheckPassiveGrabsOnWindow(
|
||||||
tempGrab.detail.exact = event->detail.key;
|
tempGrab.detail.exact = event->detail.key;
|
||||||
if (!match)
|
if (!match)
|
||||||
{
|
{
|
||||||
tempGrab.type = GetXIType((InternalEvent*)event);
|
|
||||||
tempGrab.grabtype = GRABTYPE_XI;
|
tempGrab.grabtype = GRABTYPE_XI;
|
||||||
if (GrabMatchesSecond(&tempGrab, grab, FALSE))
|
if ((tempGrab.type = GetXIType((InternalEvent*)event)) &&
|
||||||
|
(GrabMatchesSecond(&tempGrab, grab, FALSE)))
|
||||||
match = XI_MATCH;
|
match = XI_MATCH;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue