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.
This commit is contained in:
lkn 2026-06-21 19:08:07 +02:00
parent 134594e0bc
commit 58bb6f08b4
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}