mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[client] don't send mouse click events when out of view
This commit is contained in:
@@ -956,7 +956,7 @@ int eventFilter(void * userdata, SDL_Event * event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
case SDL_MOUSEWHEEL:
|
case SDL_MOUSEWHEEL:
|
||||||
if (state.ignoreInput || !params.useSpiceInput)
|
if (state.ignoreInput || !params.useSpiceInput || !state.cursorInView)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
@@ -970,7 +970,7 @@ int eventFilter(void * userdata, SDL_Event * event)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case SDL_MOUSEBUTTONDOWN:
|
case SDL_MOUSEBUTTONDOWN:
|
||||||
if (state.ignoreInput || !params.useSpiceInput)
|
if (state.ignoreInput || !params.useSpiceInput || !state.cursorInView)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// The SPICE protocol doesn't support more than a standard PS/2 3 button mouse
|
// 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;
|
break;
|
||||||
|
|
||||||
case SDL_MOUSEBUTTONUP:
|
case SDL_MOUSEBUTTONUP:
|
||||||
if (state.ignoreInput || !params.useSpiceInput)
|
if (state.ignoreInput || !params.useSpiceInput || !state.cursorInView)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// The SPICE protocol doesn't support more than a standard PS/2 3 button mouse
|
// The SPICE protocol doesn't support more than a standard PS/2 3 button mouse
|
||||||
|
Reference in New Issue
Block a user