harden ipc and frontend recovery

This commit is contained in:
2026-08-11 19:34:47 +09:00
parent 4bfb659b6d
commit 9dc116a035
14 changed files with 495 additions and 245 deletions

12
dat.h
View File

@@ -126,12 +126,20 @@ struct Drawcmd
};
typedef struct Keyreq Keyreq;
typedef struct Keyres Keyres;
struct Keyres
{
int eaten;
Str commit;
Str preedit;
};
struct Keyreq
{
int fd;
u32int ks;
u32int mod;
int want; /* nonzero: append preedit after commit */
int want; /* nonzero: include preedit in reply */
Channel *reply;
};
typedef struct Dictreq Dictreq;