x11: Implement Drag and Drop (#17491)

Closes #16225

Release Notes:

- x11: Implemented Drag and Drop.
This commit is contained in:
Fernando Tagawa 2024-09-09 18:27:45 -03:00 committed by GitHub
parent 12dde17608
commit 59be07ad90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 226 additions and 5 deletions

View file

@ -32,7 +32,24 @@ use std::{
use super::{X11Display, XINPUT_MASTER_DEVICE};
x11rb::atom_manager! {
pub XcbAtoms: AtomsCookie {
XA_ATOM,
XdndAware,
XdndStatus,
XdndEnter,
XdndLeave,
XdndPosition,
XdndSelection,
XdndDrop,
XdndFinished,
XdndTypeList,
XdndActionCopy,
TextUriList: b"text/uri-list",
UTF8_STRING,
TEXT,
STRING,
TEXT_PLAIN_UTF8: b"text/plain;charset=utf-8",
TEXT_PLAIN: b"text/plain",
XDND_DATA,
WM_PROTOCOLS,
WM_DELETE_WINDOW,
WM_CHANGE_STATE,