diff options
author | David96 <david@hameipe.de> | 2019-01-03 13:11:35 +0100 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-01-03 12:52:37 -0500 |
commit | ee5013463467fb8eb6e08b0ebdf384ad2c1783a0 (patch) | |
tree | 36b8dd024ed197d18de67378645395c81ee6fec5 /sway/input/cursor.c | |
parent | completion: use jq instead of sed for swaybar completion (diff) | |
download | sway-ee5013463467fb8eb6e08b0ebdf384ad2c1783a0.tar.gz sway-ee5013463467fb8eb6e08b0ebdf384ad2c1783a0.tar.zst sway-ee5013463467fb8eb6e08b0ebdf384ad2c1783a0.zip |
Apply tiling_drag_threshold to all containers
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r-- | sway/input/cursor.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 516251f7..66a9e435 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -1020,9 +1020,8 @@ void dispatch_cursor_button(struct sway_cursor *cursor, | |||
1020 | 1020 | ||
1021 | seat_pointer_notify_button(seat, time_msec, button, state); | 1021 | seat_pointer_notify_button(seat, time_msec, button, state); |
1022 | 1022 | ||
1023 | // If moving a previously unfocused container by it's title bar, use a | 1023 | // If moving a container by it's title bar, use a threshold for the drag |
1024 | // threshold for the drag. | 1024 | if (!mod_pressed && config->tiling_drag_threshold > 0) { |
1025 | if (!mod_pressed && !focused && config->tiling_drag_threshold > 0) { | ||
1026 | seat_begin_move_tiling_threshold(seat, cont, button); | 1025 | seat_begin_move_tiling_threshold(seat, cont, button); |
1027 | } else { | 1026 | } else { |
1028 | seat_begin_move_tiling(seat, cont, button); | 1027 | seat_begin_move_tiling(seat, cont, button); |