parent
f866f8e4e7
commit
732227eff5
13
src/x11/x.c
13
src/x11/x.c
@ -449,10 +449,17 @@ static void x_handle_click(XEvent ev)
|
||||
}
|
||||
|
||||
if (n) {
|
||||
if (act == MOUSE_CLOSE_CURRENT)
|
||||
queues_notification_close(n, REASON_USER);
|
||||
else
|
||||
if (act == MOUSE_CLOSE_CURRENT) {
|
||||
// We cannot call
|
||||
// queues_close_notification here as
|
||||
// the do_action runs in a separate
|
||||
// thread, so force expire the
|
||||
// notification instead
|
||||
n->timeout = 1;
|
||||
n->start -= 1;
|
||||
} else {
|
||||
notification_do_action(n);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user