Send drop move events to child

This commit is contained in:
Kovid Goyal
2026-03-06 10:24:40 +05:30
parent 8d069d3bcd
commit b0e57b4dce
12 changed files with 263 additions and 28 deletions

View File

@@ -17,6 +17,7 @@ typedef enum ScrollTypes { SCROLL_LINE = -999999, SCROLL_PAGE, SCROLL_FULL } Scr
typedef struct DnDCommand {
char type;
unsigned more;
uint32_t client_id;
size_t payload_sz;
} DnDCommand;
@@ -323,7 +324,7 @@ bool screen_pause_rendering(Screen *self, bool pause, int for_in_ms);
void screen_check_pause_rendering(Screen *self, monotonic_t now);
void screen_designate_charset(Screen *self, uint32_t which, uint32_t as);
void screen_multi_cursor(Screen *self, int queried_shape, int *params, unsigned num_params);
void register_drop_window(id_type window_id, const uint8_t *payload, size_t payload_sz, bool on);
void register_drop_window(id_type window_id, const uint8_t *payload, size_t payload_sz, bool on, uint32_t client_id);
#define DECLARE_CH_SCREEN_HANDLER(name) void screen_##name(Screen *screen);
DECLARE_CH_SCREEN_HANDLER(bell)
DECLARE_CH_SCREEN_HANDLER(backspace)