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 360e259ca5
commit d2316a3407
No known key found for this signature in database
GPG key ID: FF0569CF49B33CE3
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 {