[client] alert the user when capture mode is on or off

This commit is contained in:
Geoffrey McRae 2018-05-29 09:02:34 +10:00
parent ee9213da76
commit 86207993b8

View file

@ -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;