Refactor the drop protocol

Get rid of request_id. Instead use the x, y, and Y fields to
disambiguate requests. Specify error handling a little more robustly.

Implementation needed.
This commit is contained in:
Kovid Goyal
2026-04-09 20:35:36 +05:30
parent 019158c168
commit 3ab89a2fa8
4 changed files with 69 additions and 54 deletions

View File

@@ -17,7 +17,7 @@ typedef enum ScrollTypes { SCROLL_LINE = -999999, SCROLL_PAGE, SCROLL_FULL } Scr
typedef struct DnDCommand {
char type;
unsigned more;
uint32_t client_id, request_id;
uint32_t client_id;
size_t payload_sz;
int32_t cell_x, cell_y, pixel_x, pixel_y;
uint32_t operation;