Skip to content

Commit

Permalink
impr: Force reset window decoration to expected value after exiting f…
Browse files Browse the repository at this point in the history
…ull screen mode
  • Loading branch information
WerWolv committed Dec 31, 2024
1 parent ee555e0 commit c853349
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/builtin/source/content/main_menu_items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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; });
Expand Down

0 comments on commit c853349

Please sign in to comment.