XIM text always went out through imdkit's COMPOUND_TEXT converter, which already wraps every UTF-8 string in ESC%G; the UTF8_STRING negotiation, the per-client encoding list, ximtext.c's fallback and its wrapper never changed a byte on the wire. The spot location is honoured for every style now (GTK's XIM module sends it with PreeditCallbacks) and an unset focus window means the client window, as the spec says, so those clients get the popup at the caret. readattrs/place kept four transient fields to pass values between them; ximclose tore down state right before die(); the OOM passthrough context was a third policy for one small calloc where emalloc dies like everything else. Both frontends now poll for engine-owner loss only while a preedit shows instead of XIM waking on a pipe the engine had to know about; ibus stops waking five times a second when idle. keymeaningful() is the engine's own predicate. The standalone xim_test moved into the unit suite, so xim/Makefile is gone.
53 lines
1.3 KiB
C
53 lines
1.3 KiB
C
void die(char*, ...);
|
|
|
|
int sinit(Str*, char*, int);
|
|
void sclear(Str*);
|
|
void sputr(Str*, Rune);
|
|
void spopr(Str*);
|
|
void sappend(Str*, Str*);
|
|
int scmp(Str*, Str*);
|
|
int stoutf(Str*, char*, int);
|
|
Rune slastr(Str*);
|
|
|
|
int mapget(Trie*, Str*, Str*);
|
|
|
|
Trie* trienew(void);
|
|
void trieput(Trie*, char*, int, char*, int);
|
|
Trie* trieopen(char*);
|
|
void trieclose(Trie*);
|
|
int trielookup(Trie*, Str*, char**, int*);
|
|
|
|
Lang* getlang(int);
|
|
void langinit(char*);
|
|
|
|
int dictlookup(Lang*, Str*, Str*, int);
|
|
|
|
void drawthread(void*);
|
|
void popuparea(Area*, int, Area*, int, int, Area*);
|
|
void popupposition(Caret*, int, int, Area*, int, int, int*, int*);
|
|
int pagemarker(char*, int, int, int, int);
|
|
void popuplayout(Drawcmd*, int, int, Popup*);
|
|
void popupdraw(u32int*, Drawcmd*, Popup*);
|
|
void imthread(void*);
|
|
Emit transmap(Im*, Rune);
|
|
Emit transko(Im*, Rune);
|
|
Emit transvi(Im*, Rune);
|
|
void backko(Im*);
|
|
void backvi(Im*);
|
|
|
|
void srvinit(void);
|
|
void srvthread(void*);
|
|
void ibusthread(void*);
|
|
void ximthread(void*);
|
|
int keymeaningful(u32int);
|
|
|
|
void* emalloc(ulong);
|
|
void* erealloc(void*, ulong);
|
|
|
|
int textinit(void);
|
|
void textclose(void);
|
|
int textwidth(Str*);
|
|
void textdraw(u32int*, int, int, int, int, Str*);
|
|
void textdrawfit(u32int*, int, int, int, int, int, Str*);
|
|
void textdrawfitcolor(u32int*, int, int, int, int, int, u32int, Str*);
|