fix left mouse click

This commit is contained in:
Sascha Kruse 2012-12-12 14:25:01 +01:00
parent 73e4ab0e00
commit 6de6ef0619

View File

@ -708,7 +708,8 @@ void handle_mouse_click(XEvent ev)
int y = 0; int y = 0;
notification *n = NULL; notification *n = NULL;
for (n_queue *iter = displayed; iter; iter = iter->next) { 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) if (ev.xbutton.y > y && ev.xbutton.y < y + height)
break; break;
else else