mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 06:11:46 +00:00
[client] x11: fix regression, raw event's dont give us the cursor pos
This commit is contained in:
parent
0bd1bb5075
commit
07c13a9d43
1 changed files with 10 additions and 0 deletions
|
@ -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 a new issue