mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 14:03:40 +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;
|
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:
|
case XI_RawMotion:
|
||||||
{
|
{
|
||||||
if (!x11.focused || !x11.entered)
|
if (!x11.focused || !x11.entered)
|
||||||
|
Loading…
Reference in New Issue
Block a user