mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-10 15:44:41 -05:00
[Window] Lower class name before icon lookup
This commit is contained in:
parent
ca47ffee9c
commit
af3464a1c3
1 changed files with 3 additions and 1 deletions
|
@ -1040,7 +1040,9 @@ static cairo_surface_t *_get_icon(const Mode *sw, unsigned int selected_line,
|
|||
if (c->icon_fetch_uid > 0) {
|
||||
return rofi_icon_fetcher_get(c->icon_fetch_uid);
|
||||
}
|
||||
c->icon_fetch_uid = rofi_icon_fetcher_query(c->class, size);
|
||||
char *class_lower = g_utf8_strdown(c->class, -1);
|
||||
c->icon_fetch_uid = rofi_icon_fetcher_query(class_lower, size);
|
||||
g_free(class_lower);
|
||||
return rofi_icon_fetcher_get(c->icon_fetch_uid);
|
||||
}
|
||||
return c->icon;
|
||||
|
|
Loading…
Add table
Reference in a new issue