diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2021-08-17 06:41:54 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2021-08-17 06:41:54 +0200 |
commit | e605fe5dffe686241847c67166fe2414b48ee2a8 (patch) | |
tree | 5b506de0a4faa0506d0cf053af8e9d7184aa59bf /src/actionGroups/windowListGroup.vala | |
parent | 6617f5ee51c94d05028ebceb3177ec0e3a87e78d (diff) | |
parent | 6a2a889a6de6b45fcc21e0050763858768610952 (diff) |
Merge branch 'release/debian/0.7.3-1'debian/0.7.3-1
Diffstat (limited to 'src/actionGroups/windowListGroup.vala')
-rw-r--r-- | src/actionGroups/windowListGroup.vala | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/actionGroups/windowListGroup.vala b/src/actionGroups/windowListGroup.vala index ba5ea2b..34ada18 100644 --- a/src/actionGroups/windowListGroup.vala +++ b/src/actionGroups/windowListGroup.vala @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// Copyright 2011-2018 Simon Schneegans +// Copyright 2011-2021 Simon Schneegans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the @@ -176,6 +176,9 @@ public class WindowListGroup : ActionGroup { string icon_name = ""; #if HAVE_BAMF + + // bamf is not supported on wayland + if (GLib.Environment.get_variable("XDG_SESSION_TYPE") == "x11") { var xid = (uint32) window.get_xid(); Bamf.Matcher bamf_matcher = Bamf.Matcher.get_default(); Bamf.Application app = bamf_matcher.get_application_for_xid(xid); @@ -202,14 +205,14 @@ public class WindowListGroup : ActionGroup { error("%s", e.message); } } - } else { - var application = window.get_application(); - icon_name = application.get_icon_name().down(); } - #else + } + #endif + + if (icon_name == "") { var application = window.get_application(); icon_name = application.get_icon_name().down(); - #endif + } return icon_name; } |