mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 00:08:04 +02:00
...
This commit is contained in:
2
glfw/wl_window.c
vendored
2
glfw/wl_window.c
vendored
@@ -3153,12 +3153,14 @@ GLFWAPI bool glfwWaylandBeep(GLFWwindow *handle) {
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
drag_toplevel_xdg_surface_configure(void *data UNUSED, struct xdg_surface *surface, uint32_t serial) {
|
drag_toplevel_xdg_surface_configure(void *data UNUSED, struct xdg_surface *surface, uint32_t serial) {
|
||||||
|
debug_input("Drag toplevel surface configured\n");
|
||||||
xdg_surface_ack_configure(surface, serial);
|
xdg_surface_ack_configure(surface, serial);
|
||||||
if (_glfw.wl.drag.toplevel_buffer) {
|
if (_glfw.wl.drag.toplevel_buffer) {
|
||||||
wl_surface_attach(_glfw.wl.drag.drag_icon, _glfw.wl.drag.toplevel_buffer, 0, 0);
|
wl_surface_attach(_glfw.wl.drag.drag_icon, _glfw.wl.drag.toplevel_buffer, 0, 0);
|
||||||
wl_surface_damage(_glfw.wl.drag.drag_icon, 0, 0, INT32_MAX, INT32_MAX);
|
wl_surface_damage(_glfw.wl.drag.drag_icon, 0, 0, INT32_MAX, INT32_MAX);
|
||||||
wl_buffer_destroy(_glfw.wl.drag.toplevel_buffer);
|
wl_buffer_destroy(_glfw.wl.drag.toplevel_buffer);
|
||||||
_glfw.wl.drag.toplevel_buffer = NULL;
|
_glfw.wl.drag.toplevel_buffer = NULL;
|
||||||
|
debug_input("Drag toplevel icon buffer attached\n");
|
||||||
}
|
}
|
||||||
if (_glfw.wl.drag.drag_icon) wl_surface_commit(_glfw.wl.drag.drag_icon);
|
if (_glfw.wl.drag.drag_icon) wl_surface_commit(_glfw.wl.drag.drag_icon);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user