Apply tiling_drag_threshold to all containers
This commit is contained in:
parent
1450a9e9f9
commit
ee50134634
|
@ -1020,9 +1020,8 @@ void dispatch_cursor_button(struct sway_cursor *cursor,
|
||||||
|
|
||||||
seat_pointer_notify_button(seat, time_msec, button, state);
|
seat_pointer_notify_button(seat, time_msec, button, state);
|
||||||
|
|
||||||
// If moving a previously unfocused container by it's title bar, use a
|
// If moving a container by it's title bar, use a threshold for the drag
|
||||||
// threshold for the drag.
|
if (!mod_pressed && config->tiling_drag_threshold > 0) {
|
||||||
if (!mod_pressed && !focused && config->tiling_drag_threshold > 0) {
|
|
||||||
seat_begin_move_tiling_threshold(seat, cont, button);
|
seat_begin_move_tiling_threshold(seat, cont, button);
|
||||||
} else {
|
} else {
|
||||||
seat_begin_move_tiling(seat, cont, button);
|
seat_begin_move_tiling(seat, cont, button);
|
||||||
|
|
|
@ -573,13 +573,12 @@ The default colors are:
|
||||||
should not be used in the config file.
|
should not be used in the config file.
|
||||||
|
|
||||||
*tiling\_drag\_threshold* <threshold>
|
*tiling\_drag\_threshold* <threshold>
|
||||||
Sets the threshold that must be exceeded for an unfocused tiling container
|
Sets the threshold that must be exceeded for a container to be dragged by
|
||||||
to be dragged by its titlebar. This has no effect if _floating\_mod_ is
|
its titlebar. This has no effect if _floating\_mod_ is used or if
|
||||||
used, if the container is focused, or if _tiling\_drag_ is set to
|
_tiling\_drag_ is set to _disable_. Once the threshold has been exceeded
|
||||||
_disable_. Once the threshold has been exceeded once, the drag starts and
|
once, the drag starts and the cursor can come back inside the threshold
|
||||||
the cursor can come back inside the threshold without stopping the drag.
|
without stopping the drag. _threshold_ is multiplied by the scale of the
|
||||||
_threshold_ is multiplied by the scale of the output that the cursor on.
|
output that the cursor on. The default is 9.
|
||||||
The default is 9.
|
|
||||||
|
|
||||||
*title\_align* left|center|right
|
*title\_align* left|center|right
|
||||||
Sets the title alignment. If _right_ is selected and _show\_marks_ is set
|
Sets the title alignment. If _right_ is selected and _show\_marks_ is set
|
||||||
|
|
Loading…
Reference in a new issue