GLFW Wayland backend: Dont fire resize events for Wayland configure events that dont change the window size. Fixes #1473
This commit is contained in:
12
glfw/wl_window.c
vendored
12
glfw/wl_window.c
vendored
@@ -101,8 +101,10 @@ static void handleConfigure(void* data,
|
||||
height = window->maxheight;
|
||||
}
|
||||
|
||||
_glfwInputWindowSize(window, width, height);
|
||||
_glfwPlatformSetWindowSize(window, width, height);
|
||||
if (width != window->wl.width || height != window->wl.height) {
|
||||
_glfwInputWindowSize(window, width, height);
|
||||
_glfwPlatformSetWindowSize(window, width, height);
|
||||
}
|
||||
_glfwInputWindowDamage(window);
|
||||
}
|
||||
|
||||
@@ -628,8 +630,10 @@ static void xdgToplevelHandleConfigure(void* data,
|
||||
}
|
||||
}
|
||||
|
||||
_glfwInputWindowSize(window, width, height);
|
||||
_glfwPlatformSetWindowSize(window, width, height);
|
||||
if (width != window->wl.width || height != window->wl.height) {
|
||||
_glfwInputWindowSize(window, width, height);
|
||||
_glfwPlatformSetWindowSize(window, width, height);
|
||||
}
|
||||
_glfwInputWindowDamage(window);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user