From c853349b78529d102bafe4e9c91230af00260fdb Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 31 Dec 2024 21:04:09 +0100 Subject: [PATCH] impr: Force reset window decoration to expected value after exiting full screen mode --- plugins/builtin/source/content/main_menu_items.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/builtin/source/content/main_menu_items.cpp b/plugins/builtin/source/content/main_menu_items.cpp index 24e067082..deaa09239 100644 --- a/plugins/builtin/source/content/main_menu_items.cpp +++ b/plugins/builtin/source/content/main_menu_items.cpp @@ -541,6 +541,7 @@ namespace hex::plugin::builtin { glfwSetWindowMonitor(window, monitor, 0, 0, videoMode->width, videoMode->height, videoMode->refreshRate); } else { glfwSetWindowMonitor(window, nullptr, position.x, position.y, size.x, size.y, 0); + glfwSetWindowAttrib(window, GLFW_DECORATED, ImHexApi::System::isBorderlessWindowModeEnabled() ? GLFW_FALSE : GLFW_TRUE); } }, []{ return true; }, []{ return glfwGetWindowMonitor(ImHexApi::System::getMainWindowHandle()) != nullptr; });