Skip to content

Commit

Permalink
Set propagate to True, to not propagate by default (#1809)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Caellian authored Apr 10, 2024
1 parent 439783b commit e421302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/x11.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e421302

Please sign in to comment.