mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Properly update window position during resize
This commit is contained in:
@@ -902,8 +902,12 @@ namespace hex {
|
||||
if (!isMainWindow(window)) return;
|
||||
|
||||
#if !defined(OS_WINDOWS)
|
||||
if (!glfwGetWindowAttrib(window, GLFW_ICONIFIED))
|
||||
if (!glfwGetWindowAttrib(window, GLFW_ICONIFIED)) {
|
||||
int x = 0, y = 0;
|
||||
glfwGetWindowPos(window, &x, &y);
|
||||
ImHexApi::System::impl::setMainWindowPosition(x, y);
|
||||
ImHexApi::System::impl::setMainWindowSize(width, height);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(OS_MACOS)
|
||||
|
||||
Reference in New Issue
Block a user