mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[client] x11: fix regression, raw event's dont give us the cursor pos
This commit is contained in:
parent
0bd1bb5075
commit
07c13a9d43
@ -359,6 +359,16 @@ static bool x11EventFilter(SDL_Event * event)
|
||||
return true;
|
||||
}
|
||||
|
||||
case XI_Motion:
|
||||
{
|
||||
if (!x11.focused || !x11.entered)
|
||||
return true;
|
||||
|
||||
XIDeviceEvent *device = cookie->data;
|
||||
app_updateCursorPos(device->event_x, device->event_y);
|
||||
return true;
|
||||
}
|
||||
|
||||
case XI_RawMotion:
|
||||
{
|
||||
if (!x11.focused || !x11.entered)
|
||||
|
Loading…
Reference in New Issue
Block a user