Fix drop state update on move incorrect when transitioning between windows

This commit is contained in:
Kovid Goyal
2026-05-17 07:50:41 +05:30
parent 0fc73dd8c3
commit 75b99a3cbf
3 changed files with 2 additions and 6 deletions

2
glfw/wl_window.c vendored
View File

@@ -2510,7 +2510,7 @@ static void handle_primary_selection_offer(void *data UNUSED, struct zwp_primary
// Helper function to update drop state from callback results
static void
update_drop_state(_GLFWWaylandDataOffer *d, _GLFWwindow* window, size_t accepted_count) {
update_drop_state(_GLFWWaylandDataOffer *d, _GLFWwindow* window, const size_t accepted_count) {
d->copy_mimes_count = accepted_count;
bool accepted = accepted_count > 0;
bool acceptance_changed = (accepted != d->drag_accepted);