tiling drag: left-click needs threshold, mod-click doesn’t
related to https://github.com/i3/i3/issues/5155
This commit is contained in:
committed by
Michael Stapelberg
parent
6479cb7deb
commit
2ba393f084
@ -229,7 +229,8 @@ static void route_click(Con *con, xcb_button_press_event_t *event, const bool mo
|
||||
|
||||
/* 2: floating modifier pressed, initiate a drag */
|
||||
if (mod_pressed && event->detail == XCB_BUTTON_INDEX_1 && !floatingcon) {
|
||||
tiling_drag(con, event);
|
||||
const bool use_threshold = !mod_pressed;
|
||||
tiling_drag(con, event, use_threshold);
|
||||
allow_replay_pointer(event->time);
|
||||
return;
|
||||
}
|
||||
@ -307,7 +308,8 @@ static void route_click(Con *con, xcb_button_press_event_t *event, const bool mo
|
||||
/* 8: floating modifier pressed, initiate a drag */
|
||||
if ((mod_pressed || dest == CLICK_DECORATION) && event->detail == XCB_BUTTON_INDEX_1) {
|
||||
allow_replay_pointer(event->time);
|
||||
tiling_drag(con, event);
|
||||
const bool use_threshold = !mod_pressed;
|
||||
tiling_drag(con, event, use_threshold);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user