Output debug info about resized being called
This commit is contained in:
parent
39d3ef6fe8
commit
1c3910de5c
3
glfw/wl_init.c
vendored
3
glfw/wl_init.c
vendored
@ -54,6 +54,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#define debug(...) if (_glfw.hints.init.debugRendering) fprintf(stderr, __VA_ARGS__);
|
||||||
|
|
||||||
static int min(int n1, int n2)
|
static int min(int n1, int n2)
|
||||||
{
|
{
|
||||||
return n1 < n2 ? n1 : n2;
|
return n1 < n2 ? n1 : n2;
|
||||||
@ -96,7 +98,6 @@ static void pointerHandleEnter(void* data UNUSED,
|
|||||||
if (!window)
|
if (!window)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
window->wl.decorations.focus = focus;
|
window->wl.decorations.focus = focus;
|
||||||
_glfw.wl.serial = serial;
|
_glfw.wl.serial = serial;
|
||||||
_glfw.wl.pointerFocus = window;
|
_glfw.wl.pointerFocus = window;
|
||||||
|
|||||||
10
glfw/wl_window.c
vendored
10
glfw/wl_window.c
vendored
@ -246,8 +246,7 @@ dispatchChangesAfterConfigure(_GLFWwindow *window, int32_t width, int32_t height
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (scale_changed) {
|
if (scale_changed) {
|
||||||
if (!size_changed)
|
if (!size_changed) resizeFramebuffer(window);
|
||||||
resizeFramebuffer(window);
|
|
||||||
_glfwInputWindowContentScale(window, window->wl.scale, window->wl.scale);
|
_glfwInputWindowContentScale(window, window->wl.scale, window->wl.scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -522,15 +521,12 @@ static void xdgSurfaceHandleConfigure(void* data,
|
|||||||
} else {
|
} else {
|
||||||
ensure_csd_resources(window);
|
ensure_csd_resources(window);
|
||||||
}
|
}
|
||||||
debug("final window content size: %dx%d\n", width, height);
|
debug("final window content size: %dx%d resized: %d\n", width, height, resized);
|
||||||
}
|
}
|
||||||
|
|
||||||
inform_compositor_of_window_geometry(window, "configure");
|
inform_compositor_of_window_geometry(window, "configure");
|
||||||
|
|
||||||
if (!resized) {
|
if (!resized) wl_surface_commit(window->wl.surface);
|
||||||
wl_surface_commit(window->wl.surface);
|
|
||||||
}
|
|
||||||
|
|
||||||
window->wl.pending_state = 0;
|
window->wl.pending_state = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user