mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
src/icon-loader.c: skip non application entries for wmclass lookup
Fixes: #2254
This commit is contained in:
parent
e67fda50cf
commit
5d595e034a
1 changed files with 5 additions and 0 deletions
|
|
@ -223,6 +223,11 @@ get_db_entry_by_id_fuzzy(struct sfdo_desktop_db *db, const char *app_id)
|
|||
return entry;
|
||||
}
|
||||
|
||||
/* sfdo_desktop_entry_get_startup_wm_class() asserts against APPLICATION */
|
||||
if (sfdo_desktop_entry_get_type(entry) != SFDO_DESKTOP_ENTRY_APPLICATION) {
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Try desktop entry's StartupWMClass also */
|
||||
const char *wm_class =
|
||||
sfdo_desktop_entry_get_startup_wm_class(entry, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue