Skip to content

Commit

Permalink
[x11] Fix drag & drop only accepts the first file on xwayland
Browse files Browse the repository at this point in the history
Observed on KDE Wayland, with Dolphin file manager.
After dropping the first file, subsequent file drops will be rejected.
  • Loading branch information
56789a1987 committed Dec 19, 2024
1 parent f241165 commit 1861e3f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions os/x11/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,6 @@ void WindowX11::processX11Event(XEvent& event)
XFree(prop);
}

const ::Window root = XDefaultRootWindow(m_display);
XEvent event2;
memset(&event2, 0, sizeof(event2));
event2.xany.type = ClientMessage;
Expand All @@ -1329,7 +1328,7 @@ void WindowX11::processX11Event(XEvent& event)
event2.xclient.data.l[1] = (successful ? 1 : 0);
event2.xclient.data.l[2] = 0;
event2.xclient.data.l[3] = 0;
XSendEvent(m_display, root, 0, 0, &event2);
XSendEvent(m_display, g_dndSource, 0, 0, &event2);
}
break;

Expand Down

0 comments on commit 1861e3f

Please sign in to comment.