mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 04:57:54 +00:00
[client] don't send mouse click events when out of view
This commit is contained in:
parent
13f55011c0
commit
5e915dd1ff
2 changed files with 4 additions and 4 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
B1-78-g05dc713dac+1
|
||||
B1-79-g13f55011c0+1
|
|
@ -956,7 +956,7 @@ int eventFilter(void * userdata, SDL_Event * event)
|
|||
}
|
||||
|
||||
case SDL_MOUSEWHEEL:
|
||||
if (state.ignoreInput || !params.useSpiceInput)
|
||||
if (state.ignoreInput || !params.useSpiceInput || !state.cursorInView)
|
||||
break;
|
||||
|
||||
if (
|
||||
|
@ -970,7 +970,7 @@ int eventFilter(void * userdata, SDL_Event * event)
|
|||
break;
|
||||
|
||||
case SDL_MOUSEBUTTONDOWN:
|
||||
if (state.ignoreInput || !params.useSpiceInput)
|
||||
if (state.ignoreInput || !params.useSpiceInput || !state.cursorInView)
|
||||
break;
|
||||
|
||||
// The SPICE protocol doesn't support more than a standard PS/2 3 button mouse
|
||||
|
@ -987,7 +987,7 @@ int eventFilter(void * userdata, SDL_Event * event)
|
|||
break;
|
||||
|
||||
case SDL_MOUSEBUTTONUP:
|
||||
if (state.ignoreInput || !params.useSpiceInput)
|
||||
if (state.ignoreInput || !params.useSpiceInput || !state.cursorInView)
|
||||
break;
|
||||
|
||||
// The SPICE protocol doesn't support more than a standard PS/2 3 button mouse
|
||||
|
|
Loading…
Reference in a new issue