Merge pull request #852 from OTHGMars/WinShiftArrow

WinKey+Shift+L/R Arrow handler.
This commit is contained in:
Brian Roberts 2022-08-23 17:34:51 -05:00 committed by GitHub
commit a4cda42328
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;