diff options
-rw-r--r-- | sway/input/cursor.c | 5 | ||||
-rw-r--r-- | sway/sway.5.scd | 13 |
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, | |||
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); |
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: | |||
573 | should not be used in the config file. | 573 | should not be used in the config file. |
574 | 574 | ||
575 | *tiling\_drag\_threshold* <threshold> | 575 | *tiling\_drag\_threshold* <threshold> |
576 | Sets the threshold that must be exceeded for an unfocused tiling container | 576 | Sets the threshold that must be exceeded for a container to be dragged by |
577 | to be dragged by its titlebar. This has no effect if _floating\_mod_ is | 577 | its titlebar. This has no effect if _floating\_mod_ is used or if |
578 | used, if the container is focused, or if _tiling\_drag_ is set to | 578 | _tiling\_drag_ is set to _disable_. Once the threshold has been exceeded |
579 | _disable_. Once the threshold has been exceeded once, the drag starts and | 579 | once, the drag starts and the cursor can come back inside the threshold |
580 | the cursor can come back inside the threshold without stopping the drag. | 580 | without stopping the drag. _threshold_ is multiplied by the scale of the |
581 | _threshold_ is multiplied by the scale of the output that the cursor on. | 581 | output that the cursor on. The default is 9. |
582 | The default is 9. | ||
583 | 582 | ||
584 | *title\_align* left|center|right | 583 | *title\_align* left|center|right |
585 | Sets the title alignment. If _right_ is selected and _show\_marks_ is set | 584 | Sets the title alignment. If _right_ is selected and _show\_marks_ is set |