mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-09-21 20:28:06 +00:00
...
This commit is contained in:
parent
a90b8470ac
commit
837f55fe21
1 changed files with 3 additions and 2 deletions
5
glfw/wl_window.c
vendored
5
glfw/wl_window.c
vendored
|
|
@ -3420,12 +3420,13 @@ drag_source_dnd_finished(void *data UNUSED, struct wl_data_source *source UNUSED
|
|||
|
||||
static void
|
||||
drag_source_cancelled(void *data UNUSED, struct wl_data_source *source UNUSED) {
|
||||
debug_input("Drag source cancelled: has_toplevel: %d\n", !!_glfw.wl.drag.toplevel_xdg_toplevel);
|
||||
// Uber competent Wayland people contravene their own spec and make it
|
||||
// impossible to distinguish between drag cancelled and dropped but not
|
||||
// accepted. https://gitlab.freedesktop.org/wayland/wayland/-/issues/140
|
||||
// so we assume this is a drop unless we are in top-level mode. Sigh.
|
||||
cancel_drag(_glfw.wl.drag.toplevel_xdg_toplevel ? GLFW_DRAG_CANCELLED : GLFW_DRAG_DROPPED);
|
||||
const GLFWDragEventType t = _glfw.wl.drag.toplevel_xdg_toplevel ? GLFW_DRAG_CANCELLED : GLFW_DRAG_DROPPED;
|
||||
debug_input("Drag source cancelled: is_drop: %d\n", t == GLFW_DRAG_DROPPED);
|
||||
cancel_drag(t);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue