mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[client] alert the user when capture mode is on or off
This commit is contained in:
parent
ee9213da76
commit
86207993b8
@ -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 New Issue
Block a user