fix: retain the active owner's caret

This commit is contained in:
2026-08-12 15:44:04 +09:00
parent 5ba5cf209c
commit bc5712b6ac
8 changed files with 70 additions and 2 deletions

13
dat.h
View File

@@ -118,12 +118,23 @@ struct Im
};
typedef struct Drawcmd Drawcmd;
typedef struct Caret Caret;
struct Caret
{
int valid;
int x;
int y;
int w;
int h;
};
struct Drawcmd
{
Str pre;
Str kouho[Maxdisp];
int nkouho;
int sel;
Caret caret;
};
typedef struct Keyreq Keyreq;
@@ -133,6 +144,7 @@ enum
Keypress,
Keyreset,
Keyrelease,
Keycaret,
};
struct Keyres
{
@@ -147,6 +159,7 @@ struct Keyreq
int op;
u32int ks;
u32int mod;
Caret caret;
int want; /* nonzero: include preedit in reply */
Channel *reply;
};