Introduce --exclude-titlebar flag for mouse bindings. (#2703)
This introduces the flag --exclude-titlebar for mouse bindings which allows bindings like bindsym --whole-window --border --exclude-titlebar button3 focus fixes #2347
This commit is contained in:
committed by
Michael Stapelberg
parent
1d4e9f5de0
commit
d78fd8d91f
@ -186,7 +186,7 @@ static int route_click(Con *con, xcb_button_press_event_t *event, const bool mod
|
||||
if (dest == CLICK_DECORATION || dest == CLICK_INSIDE || dest == CLICK_BORDER) {
|
||||
Binding *bind = get_binding_from_xcb_event((xcb_generic_event_t *)event);
|
||||
|
||||
if (bind != NULL && (dest == CLICK_DECORATION ||
|
||||
if (bind != NULL && ((dest == CLICK_DECORATION && !bind->exclude_titlebar) ||
|
||||
(dest == CLICK_INSIDE && bind->whole_window) ||
|
||||
(dest == CLICK_BORDER && bind->border))) {
|
||||
CommandResult *result = run_binding(bind, con);
|
||||
|
Reference in New Issue
Block a user