summaryrefslogtreecommitdiffhomepage
path: root/patch/systray.c
diff options
context:
space:
mode:
Diffstat (limited to 'patch/systray.c')
-rw-r--r--patch/systray.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/patch/systray.c b/patch/systray.c
index 107bcbc..0ca2f86 100644
--- a/patch/systray.c
+++ b/patch/systray.c
@@ -161,6 +161,8 @@ updatesystrayicongeom(Client *i, int w, int h)
i->w = (int) ((float)bh * ((float)i->w / (float)i->h));
i->h = bh;
}
+ if (i->w > 2*bh)
+ i->w = bh;
}
}