From 7b26b4bd9457b2f507e870513e33f5b8dc16ea20 Mon Sep 17 00:00:00 2001 From: fwsmit Date: Fri, 4 Dec 2020 17:53:44 +0100 Subject: [PATCH] Update input.c --- src/input.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/input.c b/src/input.c index 8b5ef18..22b2ecb 100644 --- a/src/input.c +++ b/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; iter = iter->next) { n = iter->data; - 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; */ + if (mouse_y > y && mouse_y < y + n->displayed_height) break; - } y += n->displayed_height + settings.separator_height; if (first) @@ -57,13 +53,15 @@ void input_handle_click(unsigned int button, bool button_down, int mouse_x, int } if (n) { - if (act == MOUSE_CLOSE_CURRENT) - queues_notification_close(n, REASON_USER); - else + if (act == MOUSE_CLOSE_CURRENT) { + n->marked_for_closure = REASON_USER; + } else { notification_do_action(n); + } } } } + wake_up(); } /* vim: set ft=c tabstop=8 shiftwidth=8 expandtab textwidth=0: */