GLFW Wayland backend: Dont fire resize events for Wayland configure events that dont change the window size. Fixes #1473
This commit is contained in:
parent
bafedf8376
commit
5c75ac0a96
1 changed files with 8 additions and 4 deletions
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue