aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
authorKonstantin Pospelov <kupospelov@gmail.com>2019-10-23 00:28:59 +0300
committerSimon Ser <contact@emersion.fr>2019-10-23 09:53:16 +0200
commit06fcebc542a919ab3ab73fad67088ec454713aaa (patch)
treecb0790c7dcc45813eb6cc83d7b8e017469b038b8 /swaybar
parentfa0abaf7cfecf1dc433717d53379d6942226c2bb (diff)
swaybar: fix typo in the loop over pixmaps
Fixes #4665.
Diffstat (limited to 'swaybar')
-rw-r--r--swaybar/tray/item.c2
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;