commit 6c5cfea6ffcfff1a020c3920b5e1c1b82d74174c parent b54509d46107eb7b64f4913fc378934034c4735d Author: Michael Constantine Dimopoulos <mk@mcdim.xyz> Date: Sun, 5 Nov 2023 03:40:14 +0000 Fixed dynamic width bug Diffstat:
| M | sxalert.c | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sxalert.c b/sxalert.c @@ -99,8 +99,10 @@ get_width(Display *dpy, XftFont *font, char **lines, int length) if (width < min_width) return min_width; - if (width > max_width) + else if (width > max_width) return max_width; + else + return width; }