From f43772a20db4d150f3db30fabd0baea83ed2cf25 Mon Sep 17 00:00:00 2001 From: Zuki Air Date: Tue, 5 Aug 2025 14:30:38 +0100 Subject: [PATCH] update foreign_toplevel_state on title change this commit means that in the xdg-desktop-portal-wlr picker it should show up to date title names rather then the one the client spawned with --- dwl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dwl.c b/dwl.c index 8dc0abb..78a763b 100644 --- a/dwl.c +++ b/dwl.c @@ -3012,6 +3012,13 @@ updatetitle(struct wl_listener *listener, void *data) Client *c = wl_container_of(listener, c, set_title); if (c == focustop(c->mon)) printstatus(); + if (c->ext_foreign_toplevel) { + struct wlr_ext_foreign_toplevel_handle_v1_state foreign_toplevel_state = { + .app_id = client_get_appid(c), + .title = client_get_title(c), + }; + wlr_ext_foreign_toplevel_handle_v1_update_state(c->ext_foreign_toplevel,&foreign_toplevel_state); + } } void