diff options
author | Konstantin Pospelov <kupospelov@gmail.com> | 2019-10-23 00:28:59 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-10-23 09:53:16 +0200 |
commit | 06fcebc542a919ab3ab73fad67088ec454713aaa (patch) | |
tree | cb0790c7dcc45813eb6cc83d7b8e017469b038b8 /swaybar | |
parent | fa0abaf7cfecf1dc433717d53379d6942226c2bb (diff) |
swaybar: fix typo in the loop over pixmaps
Fixes #4665.
Diffstat (limited to 'swaybar')
-rw-r--r-- | swaybar/tray/item.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/tray/item.c b/swaybar/tray/item.c index 1a7672c9..06a8e5b0 100644 --- a/swaybar/tray/item.c +++ b/swaybar/tray/item.c @@ -435,7 +435,7 @@ static void reload_sni(struct swaybar_sni *sni, char *icon_theme, int min_error = INT_MAX; for (int i = 0; i < pixmaps->length; ++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) { pixmap = p; min_error = e; |