From 160ca7070f841a879c682d36f7005a3bd85dfa5f Mon Sep 17 00:00:00 2001 From: Grayson Riffe Date: Thu, 13 Feb 2025 12:42:53 -0600 Subject: [PATCH] Window setDisplay no longer hides window --- NothinFancy/src/client/Window.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/NothinFancy/src/client/Window.cpp b/NothinFancy/src/client/Window.cpp index 5bfa33f..e25bc41 100644 --- a/NothinFancy/src/client/Window.cpp +++ b/NothinFancy/src/client/Window.cpp @@ -30,8 +30,6 @@ namespace nf::client { void Window::setDisplay(DisplayConfig config) { NFLog("Setting window display"); m_width = config.width, m_height = config.height; - bool wasShown = IsWindowVisible(m_handle); - show(false); // TODO: Only use "active" monitor when starting windowed POINT cursor = {}; @@ -62,8 +60,6 @@ namespace nf::client { } SetWindowPos(m_handle, nullptr, windowX, windowY, windowWidth, windowHeight, SWP_NOZORDER | SWP_FRAMECHANGED); - - show(wasShown); } void Window::runLoop() {