mirror of
https://github.com/NickHu/sway
synced 2024-12-27 21:58:11 +01:00
parent
fa0abaf7cf
commit
06fcebc542
1 changed files with 1 additions and 1 deletions
|
@ -435,7 +435,7 @@ static void reload_sni(struct swaybar_sni *sni, char *icon_theme,
|
||||||
int min_error = INT_MAX;
|
int min_error = INT_MAX;
|
||||||
for (int i = 0; i < pixmaps->length; ++i) {
|
for (int i = 0; i < pixmaps->length; ++i) {
|
||||||
struct swaybar_pixmap *p = pixmaps->items[i];
|
struct swaybar_pixmap *p = pixmaps->items[i];
|
||||||
int e = abs(target_size - pixmap->size);
|
int e = abs(target_size - p->size);
|
||||||
if (e < min_error) {
|
if (e < min_error) {
|
||||||
pixmap = p;
|
pixmap = p;
|
||||||
min_error = e;
|
min_error = e;
|
||||||
|
|
Loading…
Reference in a new issue