mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 14:21:57 +00:00
[client] alert the user when capture mode is on or off
This commit is contained in:
parent
ee9213da76
commit
86207993b8
1 changed files with 7 additions and 0 deletions
|
@ -526,6 +526,13 @@ int eventFilter(void * userdata, SDL_Event * event)
|
|||
SDL_SetRelativeMouseMode(serverMode);
|
||||
DEBUG_INFO("Server Mode: %s", serverMode ? "on" : "off");
|
||||
|
||||
if (state.lgr)
|
||||
state.lgr->on_alert(
|
||||
state.lgrData,
|
||||
LG_ALERT_INFO,
|
||||
serverMode ? "Capture Enabled" : "Capture Disabled"
|
||||
);
|
||||
|
||||
if (!serverMode)
|
||||
realignGuest = true;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue