app-list: Match by startup WM Class for Xwayland compatibility

This commit is contained in:
Victoria Brekenfeld 2023-09-29 11:43:32 +02:00
parent 2bad36ebed
commit 6e15d8e282

View file

@ -270,7 +270,7 @@ fn desktop_info_for_app_ids(mut app_ids: Vec<String>) -> Vec<DesktopInfo> {
DesktopEntry::decode(&path, &input).ok().and_then(|de| {
if let Some(i) = app_ids
.iter()
.position(|s| s == de.appid || s.eq(&de.name(None).unwrap_or_default()))
.position(|s| s == de.appid || s.eq(&de.startup_wm_class().unwrap_or_default()))
{
let icon = freedesktop_icons::lookup(de.icon().unwrap_or(de.appid))
.with_size(128)