From 47abcf646060e2429e97f0970f6e2061179451aa Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sun, 12 Oct 2025 20:24:17 +0800 Subject: [PATCH] opt: allow use ime in layer surface --- src/mango.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mango.c b/src/mango.c index 80a22a8..d5a3c30 100644 --- a/src/mango.c +++ b/src/mango.c @@ -1520,6 +1520,8 @@ void reset_exclusive_layer(Monitor *m) { /* Deactivate the focused client. */ focusclient(NULL, 0); exclusive_focus = l; + dwl_im_relay_set_focus(dwl_input_method_relay, + l->layer_surface->surface); client_notify_enter(l->layer_surface->surface, wlr_seat_get_keyboard(seat)); return; @@ -1823,6 +1825,8 @@ buttonpress(struct wl_listener *listener, void *data) { l->layer_surface->current.keyboard_interactive == ZWLR_LAYER_SURFACE_V1_KEYBOARD_INTERACTIVITY_ON_DEMAND) { focusclient(NULL, 0); + dwl_im_relay_set_focus(dwl_input_method_relay, + l->layer_surface->surface); client_notify_enter(l->layer_surface->surface, wlr_seat_get_keyboard(seat)); }