GLFW Wayland backend: Dont fire resize events for Wayland configure events that dont change the window size. Fixes #1473

This commit is contained in:
Kovid Goyal 2019-03-17 15:07:32 +05:30
parent bafedf8376
commit 5c75ac0a96
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

12
glfw/wl_window.c vendored
View file

@ -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);
}