fix left mouse click
This commit is contained in:
parent
73e4ab0e00
commit
6de6ef0619
3
dunst.c
3
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user