From abd16bfefdc76220fdf373b40c60724a5bcf9c6c Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Wed, 3 Sep 2025 07:24:57 +0800 Subject: [PATCH] opt: On-demand focus layer not auto get focus --- src/mango.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/mango.c b/src/mango.c index 63186a0..a53f60e 100644 --- a/src/mango.c +++ b/src/mango.c @@ -2095,15 +2095,6 @@ void maplayersurfacenotify(struct wl_listener *listener, void *data) { } // 刷新布局,让窗口能感应到exclude_zone变化以及设置独占表面 arrangelayers(l->mon); - - // 按需交互layer需要像正常窗口一样抢占非独占layer的焦点 - if (!exclusive_focus && - l->layer_surface->current.keyboard_interactive == - ZWLR_LAYER_SURFACE_V1_KEYBOARD_INTERACTIVITY_ON_DEMAND) { - focusclient(NULL, 0); - client_notify_enter(l->layer_surface->surface, - wlr_seat_get_keyboard(seat)); - } } void commitlayersurfacenotify(struct wl_listener *listener, void *data) {