aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorDavid96 <david@hameipe.de>2019-01-03 13:11:35 +0100
committerBrian Ashworth <bosrsf04@gmail.com>2019-01-03 12:52:37 -0500
commitee5013463467fb8eb6e08b0ebdf384ad2c1783a0 (patch)
tree36b8dd024ed197d18de67378645395c81ee6fec5 /sway
parent1450a9e9f9bcca16fc8162699f1000bb4563ffd5 (diff)
Apply tiling_drag_threshold to all containers
Diffstat (limited to 'sway')
-rw-r--r--sway/input/cursor.c5
-rw-r--r--sway/sway.5.scd13
2 files changed, 8 insertions, 10 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,
seat_pointer_notify_button(seat, time_msec, button, state);
- // If moving a previously unfocused container by it's title bar, use a
- // threshold for the drag.
- if (!mod_pressed && !focused && config->tiling_drag_threshold > 0) {
+ // If moving a container by it's title bar, use a threshold for the drag
+ if (!mod_pressed && config->tiling_drag_threshold > 0) {
seat_begin_move_tiling_threshold(seat, cont, button);
} else {
seat_begin_move_tiling(seat, cont, button);
diff --git a/sway/sway.5.scd b/sway/sway.5.scd
index 37a9b24c..f0dea993 100644
--- a/sway/sway.5.scd
+++ b/sway/sway.5.scd
@@ -573,13 +573,12 @@ The default colors are:
should not be used in the config file.
*tiling\_drag\_threshold* <threshold>
- Sets the threshold that must be exceeded for an unfocused tiling container
- to be dragged by its titlebar. This has no effect if _floating\_mod_ is
- used, if the container is focused, or if _tiling\_drag_ is set to
- _disable_. Once the threshold has been exceeded once, the drag starts and
- the cursor can come back inside the threshold without stopping the drag.
- _threshold_ is multiplied by the scale of the output that the cursor on.
- The default is 9.
+ Sets the threshold that must be exceeded for a container to be dragged by
+ its titlebar. This has no effect if _floating\_mod_ is used or if
+ _tiling\_drag_ is set to _disable_. Once the threshold has been exceeded
+ once, the drag starts and the cursor can come back inside the threshold
+ without stopping the drag. _threshold_ is multiplied by the scale of the
+ output that the cursor on. The default is 9.
*title\_align* left|center|right
Sets the title alignment. If _right_ is selected and _show\_marks_ is set