app-list: Match by startup WM Class for Xwayland compatibility
This commit is contained in:
parent
2bad36ebed
commit
6e15d8e282
1 changed files with 1 additions and 1 deletions
|
|
@ -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| {
|
DesktopEntry::decode(&path, &input).ok().and_then(|de| {
|
||||||
if let Some(i) = app_ids
|
if let Some(i) = app_ids
|
||||||
.iter()
|
.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))
|
let icon = freedesktop_icons::lookup(de.icon().unwrap_or(de.appid))
|
||||||
.with_size(128)
|
.with_size(128)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue