WinKey+Shift+L/R Arrow handler.

Attempts to constrain canvas when switching between monitors via keyboard shortcut.
This commit is contained in:
OTHGMars 2022-08-15 03:10:42 -04:00
parent 3e88e2acb8
commit 13a53dd0ca

View file

@ -672,6 +672,11 @@ void PlatformWindowSDL::_processSDLEvent(SDL_Event &evt)
case SDL_WINDOWEVENT_RESTORED:
Con::setBoolVariable("pref::Video::isMaximized", false);
break;
case SDL_WINDOWEVENT_DISPLAY_CHANGED:
Con::printf("Window moved to display #%d", evt.window.data1);
Con::setIntVariable("pref::Video::deviceId", evt.window.data1);
Con::evaluate("configureCanvas();");
break;
default:
break;