mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
[client] x11: filter out virtual/grabbed XIEnterEvents
This commit is contained in:
parent
9aa0d3ddab
commit
2d470b8deb
@ -975,9 +975,13 @@ static void x11XInputEvent(XGenericEventCookie *cookie)
|
||||
{
|
||||
atomic_store(&x11.lastWMEvent, microtime());
|
||||
XIEnterEvent *xie = cookie->data;
|
||||
if (x11.entered || xie->event != x11.window)
|
||||
if (x11.entered || xie->event != x11.window ||
|
||||
xie->mode != XINotifyNormal)
|
||||
return;
|
||||
|
||||
if (xie->event_x < 0 || xie->event_y < 0)
|
||||
DEBUG_INFO("enter %f %f", xie->event_x, xie->event_y);
|
||||
|
||||
app_updateCursorPos(xie->event_x, xie->event_y);
|
||||
app_handleEnterEvent(true);
|
||||
x11.entered = true;
|
||||
|
Loading…
Reference in New Issue
Block a user