Add some more debug about scale changes

This commit is contained in:
Kovid Goyal 2022-03-29 09:47:48 +05:30
parent e522095fae
commit 51c8e3b2c6
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

3
glfw/wl_window.c vendored
View file

@ -246,6 +246,7 @@ dispatchChangesAfterConfigure(_GLFWwindow *window, int32_t width, int32_t height
}
if (scale_changed) {
debug("Scale changed to %d in dispatchChangesAfterConfigure", window->wl.scale);
if (!size_changed) resizeFramebuffer(window);
_glfwInputWindowContentScale(window, window->wl.scale, window->wl.scale);
}
@ -297,6 +298,7 @@ static void surfaceHandleEnter(void *data,
window->wl.monitors[window->wl.monitorsCount++] = monitor;
if (checkScaleChange(window)) {
debug("Scale changed to %d in surface enter event", window->wl.scale);
resizeFramebuffer(window);
_glfwInputWindowContentScale(window, window->wl.scale, window->wl.scale);
ensure_csd_resources(window);
@ -322,6 +324,7 @@ static void surfaceHandleLeave(void *data,
window->wl.monitors[--window->wl.monitorsCount] = NULL;
if (checkScaleChange(window)) {
debug("Scale changed to %d in surface leave event", window->wl.scale);
resizeFramebuffer(window);
_glfwInputWindowContentScale(window, window->wl.scale, window->wl.scale);
ensure_csd_resources(window);