12
src/click.c
12
src/click.c
@ -272,14 +272,16 @@ static void route_click(Con *con, xcb_button_press_event_t *event, const bool mo
|
|||||||
|
|
||||||
/* 7: floating modifier pressed, initiate a resize */
|
/* 7: floating modifier pressed, initiate a resize */
|
||||||
if (dest == CLICK_INSIDE && mod_pressed && is_right_click) {
|
if (dest == CLICK_INSIDE && mod_pressed && is_right_click) {
|
||||||
floating_mod_on_tiled_client(con, event);
|
if (floating_mod_on_tiled_client(con, event)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
/* Avoid propagating events to clients, since the user expects
|
/* Avoid propagating events to clients, since the user expects
|
||||||
* $mod + click to be handled by i3. */
|
* $mod+click to be handled by i3. */
|
||||||
return;
|
goto done;
|
||||||
}
|
}
|
||||||
/* 8: otherwise, check for border/decoration clicks and resize */
|
/* 8: otherwise, check for border/decoration clicks and resize */
|
||||||
else if ((dest == CLICK_BORDER || dest == CLICK_DECORATION) &&
|
if ((dest == CLICK_BORDER || dest == CLICK_DECORATION) &&
|
||||||
is_left_or_right_click) {
|
is_left_or_right_click) {
|
||||||
DLOG("Trying to resize (tiling)\n");
|
DLOG("Trying to resize (tiling)\n");
|
||||||
tiling_resize(con, event, dest, dest == CLICK_DECORATION && !was_focused);
|
tiling_resize(con, event, dest, dest == CLICK_DECORATION && !was_focused);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user