Implement tiling_drag_threshold

Implements `tiling_drag_threshold <threshold>` to prevent accidental
dragging of tiling containers. If a container (and all of its
descendants) are unfocused and the tile bar is pressed, a threshold
will be used before actually starting the drag. Once the threshold has
been exceeded, the cursor will change to the grab icon and the operation
will switch from `OP_MOVE_TILING_THRESHOLD` to `OP_MOVE_TILING`.
This commit is contained in:
Brian Ashworth 2019-01-01 08:45:21 -05:00 committed by emersion
parent a96e86744f
commit 5bf4daf263
10 changed files with 91 additions and 2 deletions

View file

@ -572,6 +572,15 @@ The default colors are:
the _floating\_mod_ will also allow the container to be dragged. _toggle_
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.
*title\_align* left|center|right
Sets the title alignment. If _right_ is selected and _show\_marks_ is set
to _yes_, the marks will be shown on the _left_ side instead of the