mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-21 19:47:21 +03:00
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
|
||||
|
||||
|
||||
#define debug(...) if (_glfw.hints.init.debugRendering) fprintf(stderr, __VA_ARGS__);
|
||||
|
||||
static int min(int n1, int n2)
|
||||
{
|
||||
return n1 < n2 ? n1 : n2;
|
||||
@ -96,7 +98,6 @@ static void pointerHandleEnter(void* data UNUSED,
|
||||
if (!window)
|
||||
return;
|
||||
}
|
||||
|
||||
window->wl.decorations.focus = focus;
|
||||
_glfw.wl.serial = serial;
|
||||
_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 (!size_changed)
|
||||
resizeFramebuffer(window);
|
||||
if (!size_changed) resizeFramebuffer(window);
|
||||
_glfwInputWindowContentScale(window, window->wl.scale, window->wl.scale);
|
||||
}
|
||||
|
||||
@ -522,15 +521,12 @@ static void xdgSurfaceHandleConfigure(void* data,
|
||||
} else {
|
||||
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");
|
||||
|
||||
if (!resized) {
|
||||
wl_surface_commit(window->wl.surface);
|
||||
}
|
||||
|
||||
if (!resized) wl_surface_commit(window->wl.surface);
|
||||
window->wl.pending_state = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user