mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 21:43:40 +00:00
[client] spice: correct enter/leave event handling
This commit is contained in:
parent
5323d9833a
commit
c08aa8ece7
@ -1102,7 +1102,7 @@ int eventFilter(void * userdata, SDL_Event * event)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case EnterNotify:
|
case EnterNotify:
|
||||||
if (xe.xcrossing.detail != NotifyNonlinear)
|
if (xe.xcrossing.mode != NotifyNormal)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
state.curLastX = xe.xcrossing.x;
|
state.curLastX = xe.xcrossing.x;
|
||||||
@ -1112,7 +1112,7 @@ int eventFilter(void * userdata, SDL_Event * event)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case LeaveNotify:
|
case LeaveNotify:
|
||||||
if (xe.xcrossing.detail != NotifyNonlinear)
|
if (xe.xcrossing.mode != NotifyNormal)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
state.curLastX = xe.xcrossing.x;
|
state.curLastX = xe.xcrossing.x;
|
||||||
|
Loading…
Reference in New Issue
Block a user