better wayland clipboard, initial xdnd support
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
IoIxD 2026-09-15 09:45:38 +09:00 committed by IoI_xD
commit fdbdc83527
6 changed files with 321 additions and 57 deletions

View file

@ -456,6 +456,8 @@ struct _MwLLWayland {
MwU64 next_elapsed;
long start_time;
long end_time;
MwBool accepts_dnd;
};
struct _MwLLWaylandColor {

View file

@ -27,20 +27,36 @@ struct _MwLLX11 {
unsigned int width;
unsigned int height;
Display* display;
Window window;
Pixmap pixmap;
GC gc;
Colormap colormap;
Atom wm_delete;
Atom wm_protocols;
Atom utf8_string;
Atom compound_text;
Atom text;
Atom clipboard;
Atom selection;
XIM xim;
XIC xic;
Display* display;
Window window;
Pixmap pixmap;
GC gc;
Colormap colormap;
Atom wm_delete;
Atom wm_protocols;
Atom utf8_string;
Atom compound_text;
Atom text;
Atom clipboard;
Atom selection;
Atom xdnd_type_list;
Atom xdnd_selection;
Atom xdnd_enter;
Atom xdnd_position;
Atom xdnd_status;
Atom xdnd_leave;
Atom xdnd_drop;
Atom xdnd_finished;
Atom xdnd_action_copy;
Atom xdnd_text_uri_list;
Atom xdnd_text_plain;
Atom xdnd_aware;
int xdnd_source;
unsigned char xdnd_version;
int xdnd_format;
XIM xim;
XIC xic;
long clipboard_time;
int clipboard_pending; /* 1 if UTF8_STRING, 2 if COMPOUND_TEXT, 3 if TEXT, 4 if STRING, otherwise 0 */