mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 22:01:46 +00:00
[client] provide better mouse tracking when exiting/entering the window
This commit is contained in:
parent
cddeeff3fc
commit
b5f4c639fd
2 changed files with 7 additions and 1 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
B1-162-gb953b2b807+1
|
||||
B1-163-g577c54d20d+1
|
|
@ -860,10 +860,16 @@ int eventFilter(void * userdata, SDL_Event * event)
|
|||
break;
|
||||
|
||||
case EnterNotify:
|
||||
state.curLocalX = xe.xcrossing.x;
|
||||
state.curLocalY = xe.xcrossing.y;
|
||||
state.haveCurLocal = true;
|
||||
handleWindowEnter();
|
||||
break;
|
||||
|
||||
case LeaveNotify:
|
||||
state.curLocalX = xe.xcrossing.x;
|
||||
state.curLocalY = xe.xcrossing.y;
|
||||
state.haveCurLocal = true;
|
||||
handleWindowLeave();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue