1
0
mirror of synced 2025-01-11 05:42:15 +01:00

impr: Force reset window decoration to expected value after exiting full screen mode

This commit is contained in:
WerWolv 2024-12-31 21:04:09 +01:00
parent ee555e0da9
commit c853349b78

View File

@ -541,6 +541,7 @@ namespace hex::plugin::builtin {
glfwSetWindowMonitor(window, monitor, 0, 0, videoMode->width, videoMode->height, videoMode->refreshRate); glfwSetWindowMonitor(window, monitor, 0, 0, videoMode->width, videoMode->height, videoMode->refreshRate);
} else { } else {
glfwSetWindowMonitor(window, nullptr, position.x, position.y, size.x, size.y, 0); 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; }); }, []{ return true; }, []{ return glfwGetWindowMonitor(ImHexApi::System::getMainWindowHandle()) != nullptr; });