mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[client] provide better mouse tracking when exiting/entering the window
This commit is contained in:
parent
cddeeff3fc
commit
b5f4c639fd
@ -860,10 +860,16 @@ int eventFilter(void * userdata, SDL_Event * event)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case EnterNotify:
|
case EnterNotify:
|
||||||
|
state.curLocalX = xe.xcrossing.x;
|
||||||
|
state.curLocalY = xe.xcrossing.y;
|
||||||
|
state.haveCurLocal = true;
|
||||||
handleWindowEnter();
|
handleWindowEnter();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LeaveNotify:
|
case LeaveNotify:
|
||||||
|
state.curLocalX = xe.xcrossing.x;
|
||||||
|
state.curLocalY = xe.xcrossing.y;
|
||||||
|
state.haveCurLocal = true;
|
||||||
handleWindowLeave();
|
handleWindowLeave();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user