diff options
| author | Yixue Wang <[email protected]> | 2025-12-03 17:50:02 +0800 |
|---|---|---|
| committer | Liang Qi <[email protected]> | 2025-12-05 01:39:35 +0000 |
| commit | 8b4571a3b752d7b02bb44d83c0326fd3d9677a1e (patch) | |
| tree | 3b8687f64c0de8a0d1064fde607231ebcf86fa0d /src | |
| parent | 152144c734b1cee825172b6a02368d8772afb206 (diff) | |
xcb: check exactly the first bit of XdndStatus flags in QXcbDrag
https://www.freedesktop.org/wiki/Specifications/XDND/#clientmessages
Client Messages->XdndStatus->data.l[1]: Bit 0 is set if the current target will accept the drop.
Pick-to: 6.10 6.8
Change-Id: I6978f99f55d57c8025cc644ef837af154f44e7a8
Reviewed-by: Liang Qi <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/plugins/platforms/xcb/qxcbdrag.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/qxcbdrag.cpp b/src/plugins/platforms/xcb/qxcbdrag.cpp index b4c12ed1a0c..d8e41a753ef 100644 --- a/src/plugins/platforms/xcb/qxcbdrag.cpp +++ b/src/plugins/platforms/xcb/qxcbdrag.cpp @@ -856,7 +856,7 @@ void QXcbDrag::handle_xdnd_status(const xcb_client_message_event_t *event) if (event->data.data32[0] && event->data.data32[0] != current_target) return; - const bool dropPossible = event->data.data32[1]; + const bool dropPossible = event->data.data32[1] & 1; setCanDrop(dropPossible); if (dropPossible) { |
