From 58bb6f08b47b3d0e56b0bc31a8e034fc411b620d Mon Sep 17 00:00:00 2001 From: lkn Date: Sun, 21 Jun 2026 19:08:07 +0200 Subject: [PATCH] wayland: use app_id for both wm_class and wm_instance in PropGetWMClass Previously wm_instance was set to the window title, but docked icons store app_id as their wm_instance. This mismatch caused wDockTrackWindowLaunch to fail matching the new window to the docked icon, resulting in a duplicate free-floating appicon being created. --- src/backend/wayland/wl_props.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/wayland/wl_props.c b/src/backend/wayland/wl_props.c index cebff6a..b4496b4 100644 --- a/src/backend/wayland/wl_props.c +++ b/src/backend/wayland/wl_props.c @@ -95,7 +95,7 @@ wl_prop_get_wm_class(WNativeWindow win, v->xdg_surface->toplevel->title) ? v->xdg_surface->toplevel->title : NULL; *wm_class = strdup(app_id ? app_id : (title ? title : "wayland-client")); - *wm_instance = strdup(title ? title : (app_id ? app_id : "wayland-client")); + *wm_instance = strdup(app_id ? app_id : (title ? title : "wayland-client")); return 1; }