VIDEO: handle input when moving the window via shortcuts

master
Martin Gerhardy 2022-01-26 18:54:41 +01:00
parent 75e838e1df
commit 3f2de00ef9
1 changed files with 3 additions and 0 deletions

View File

@ -75,6 +75,9 @@ bool WindowedApp::handleSDLEvent(SDL_Event& event) {
video::resize(w, h, scaleFactor);
video::viewport(0, 0, _frameBufferDimension.x, _frameBufferDimension.y);
}
if (event.window.event == SDL_WINDOWEVENT_MOVED) {
SDL_RaiseWindow(window);
}
}
// fallthrough
default: {