From deb9918b9bb847ac4b055ac7ffbb811987581afa Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 13 Sep 2022 19:52:34 +0200 Subject: [PATCH] source/Display/Display.cpp: Need to set position to 0,0 in window fullscreen, otherwise it wont stick to the top-left of the monitor. --- source/Display/Display.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/Display/Display.cpp b/source/Display/Display.cpp index 08529f3..b7a3135 100644 --- a/source/Display/Display.cpp +++ b/source/Display/Display.cpp @@ -120,6 +120,7 @@ void Display::setVideoMode(Mode mode) DisplayMode desktop = DisplayMode::getDesktopMode(); m_impl->setDecoration(DisplayDecorate::None); m_impl->setSize(desktop.width, desktop.height); + m_impl->setPosition(0, 0); } // Window mode. else {