feat: support input method

The ime.c is basically derived from sway's text_input.c.
This commit is contained in:
chirsz-ever 2025-03-10 04:26:38 +08:00
parent a1e5bf3789
commit 69396dc249
9 changed files with 960 additions and 19 deletions

5
view.h
View file

@ -15,10 +15,11 @@
#include "server.h"
enum cg_view_type {
CAGE_XDG_SHELL_VIEW,
CAGE_XDG_SHELL_VIEW = 0,
#if CAGE_HAS_XWAYLAND
CAGE_XWAYLAND_VIEW,
CAGE_XWAYLAND_VIEW = 1,
#endif
CAGE_INPUT_POPUP_VIEW = 2,
};
struct cg_view {