From 6de6ef06190c4a84af39cc948b7f6cce0b7900ef Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Wed, 12 Dec 2012 14:25:01 +0100 Subject: [PATCH] fix left mouse click --- dunst.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dunst.c b/dunst.c index c554ed9..c3d13a0 100644 --- a/dunst.c +++ b/dunst.c @@ -708,7 +708,8 @@ void handle_mouse_click(XEvent ev) int y = 0; notification *n = NULL; for (n_queue *iter = displayed; iter; iter = iter->next) { - int height = font_h * iter->n->line_count; + n = iter->n; + int height = MAX(font_h, line_height) * n->line_count; if (ev.xbutton.y > y && ev.xbutton.y < y + height) break; else