ibus: room for a thousand input contexts

Toolkits keep one IBus context per widget that ever took focus, so 64
across every client could run out in a long session, after which new
widgets silently got no input method. The table is static and small
(about 100 bytes a slot).
This commit is contained in:
2026-08-16 18:25:55 +09:00
parent 03c196a7f6
commit 68678283cd

3
ibus.c
View File

@@ -15,7 +15,8 @@ enum
{
Maxconns = Maxclients,
Maxwatches = 2*Maxconns + 1,
Maxcontexts = Maxclients,
/* Toolkits keep one context per widget that ever took focus. */
Maxcontexts = 1024,
Relmask = 1<<30,
Ownerpoll = 200, /* ms between owner checks while a preedit shows */
/* IBus wire constants; the daemon does not link libibus. */