We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 762d6f7 commit e748e91Copy full SHA for e748e91
icon.c
@@ -113,7 +113,16 @@ static char *resolve_icon(struct mako_notification *notif) {
113
errno = 0;
114
int32_t icon_size = strtol(relative_path, NULL, 10);
115
if (errno || icon_size == 0) {
116
- continue;
+ // Try second level subdirectory if failed.
117
+ errno = 0;
118
+ while (relative_path[0] != '/') {
119
+ ++relative_path;
120
+ }
121
122
+ icon_size = strtol(relative_path, NULL, 10);
123
+ if (errno || icon_size == 0) {
124
+ continue;
125
126
}
127
128
int32_t icon_scale = 1;
0 commit comments