From e4213024e4ed1eedb7d031b1c7a99649d386a9cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tin=20=C5=A0vagelj?= Date: Wed, 10 Apr 2024 17:35:30 +0000 Subject: [PATCH] Set propagate to True, to not propagate by default (#1809) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit XSendEvent propagate bool argument is actually "don't force propagation", so True value means the event will only get propagated if it's not handled, and False means the event will _always_ get propagated. Signed-off-by: Tin Å vagelj --- src/x11.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x11.cc b/src/x11.cc index 9acdfe3c5..cabab9b88 100644 --- a/src/x11.cc +++ b/src/x11.cc @@ -1410,7 +1410,7 @@ void propagate_x11_event(XEvent &ev) { } XUngrabPointer(display, CurrentTime); - XSendEvent(display, i_ev->common.window, False, ev_to_mask(i_ev->type), &ev); + XSendEvent(display, i_ev->common.window, True, ev_to_mask(i_ev->type), &ev); } /// @brief This function returns the last descendant of a window (leaf) on the