Skip to content

Commit 1861e3f

Browse files
committedDec 19, 2024
[x11] Fix drag & drop only accepts the first file on xwayland
Observed on KDE Wayland, with Dolphin file manager. After dropping the first file, subsequent file drops will be rejected.
1 parent f241165 commit 1861e3f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎os/x11/window.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,6 @@ void WindowX11::processX11Event(XEvent& event)
13171317
XFree(prop);
13181318
}
13191319

1320-
const ::Window root = XDefaultRootWindow(m_display);
13211320
XEvent event2;
13221321
memset(&event2, 0, sizeof(event2));
13231322
event2.xany.type = ClientMessage;
@@ -1329,7 +1328,7 @@ void WindowX11::processX11Event(XEvent& event)
13291328
event2.xclient.data.l[1] = (successful ? 1 : 0);
13301329
event2.xclient.data.l[2] = 0;
13311330
event2.xclient.data.l[3] = 0;
1332-
XSendEvent(m_display, root, 0, 0, &event2);
1331+
XSendEvent(m_display, g_dndSource, 0, 0, &event2);
13331332
}
13341333
break;
13351334

0 commit comments

Comments
 (0)