neuswc

patched neuswc library (tracked)
git clone https://git.daat.foo/neuswc.git
Log | Files | Refs | README | LICENSE

commit 6a928895864f766363cf3b6ad851d9efd8e85335
parent d0ee3ac6e1481411cc0dcdb3df9828246fcdae9e
Author: shrub <maybeshrub@gmail.com>
Date:   Thu, 30 Apr 2026 16:27:10 +0000

send leave when destroying focused view

Diffstat:
Mlibswc/input.c | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/libswc/input.c b/libswc/input.c @@ -70,10 +70,15 @@ handle_focus_view_destroy(struct wl_listener *listener, void *data) { struct input_focus *input_focus = wl_container_of(listener, input_focus, view_destroy_listener); + struct compositor_view *view = input_focus->view; + + (void)data; + + /* send the leave event */ + if (view) { + unfocus(input_focus); + } - /* XXX: Should this call unfocus? */ - wl_list_insert_list(&input_focus->inactive, &input_focus->active); - wl_list_init(&input_focus->active); input_focus->client = NULL; input_focus->view = NULL; }