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

2
view.c
View file

@ -137,7 +137,7 @@ view_map(struct cg_view *view, struct wlr_surface *surface)
#if CAGE_HAS_XWAYLAND
/* We shouldn't position override-redirect windows. They set
their own (x,y) coordinates in handle_wayland_surface_map. */
if (view->type != CAGE_XWAYLAND_VIEW || xwayland_view_should_manage(view))
if (view->type == CAGE_XDG_SHELL_VIEW || (view->type == CAGE_XWAYLAND_VIEW && xwayland_view_should_manage(view)))
#endif
{
view_position(view);