When leaving OS window clear it from drop state

This commit is contained in:
Kovid Goyal 2026-04-07 12:12:06 +05:30
parent cd3860817b
commit 69f24c503f
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -830,6 +830,7 @@ on_drop(GLFWwindow *window, GLFWDropEvent *ev) {
}
break;
case GLFW_DROP_LEAVE:
global_state.drop_dest.os_window_id = 0;
for (size_t tc = 0; tc < os_window->num_tabs; tc++) {
Tab *t = os_window->tabs + tc;
for (size_t i = 0; i < t->num_windows; i++) {