Update input.c
This commit is contained in:
parent
20eebb80e1
commit
7b26b4bd94
14
src/input.c
14
src/input.c
@ -44,12 +44,8 @@ void input_handle_click(unsigned int button, bool button_down, int mouse_x, int
|
|||||||
for (const GList *iter = queues_get_displayed(); iter;
|
for (const GList *iter = queues_get_displayed(); iter;
|
||||||
iter = iter->next) {
|
iter = iter->next) {
|
||||||
n = iter->data;
|
n = iter->data;
|
||||||
if (mouse_y > y && mouse_y < y + n->displayed_height) {
|
if (mouse_y > y && mouse_y < y + n->displayed_height)
|
||||||
/* LOG_W("Mouse X: %i", mouse_x); */
|
|
||||||
/* LOG_W("X < width: ", mouse_x < ); */
|
|
||||||
/* n = NULL; */
|
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
|
|
||||||
y += n->displayed_height + settings.separator_height;
|
y += n->displayed_height + settings.separator_height;
|
||||||
if (first)
|
if (first)
|
||||||
@ -57,13 +53,15 @@ void input_handle_click(unsigned int button, bool button_down, int mouse_x, int
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (n) {
|
if (n) {
|
||||||
if (act == MOUSE_CLOSE_CURRENT)
|
if (act == MOUSE_CLOSE_CURRENT) {
|
||||||
queues_notification_close(n, REASON_USER);
|
n->marked_for_closure = REASON_USER;
|
||||||
else
|
} else {
|
||||||
notification_do_action(n);
|
notification_do_action(n);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wake_up();
|
wake_up();
|
||||||
}
|
}
|
||||||
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
/* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user