[client] x11: fix regression, raw event's dont give us the cursor pos

This commit is contained in:
Geoffrey McRae 2021-01-19 20:46:12 +11:00
parent 0bd1bb5075
commit 07c13a9d43

View File

@ -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)