mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[client] x11: fix regression, raw event's dont give us the cursor pos
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user