mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
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:
parent
a96e86744f
commit
5bf4daf263
10 changed files with 91 additions and 2 deletions
|
|
@ -87,6 +87,7 @@ static struct cmd_handler handlers[] = {
|
|||
{ "smart_borders", cmd_smart_borders },
|
||||
{ "smart_gaps", cmd_smart_gaps },
|
||||
{ "tiling_drag", cmd_tiling_drag },
|
||||
{ "tiling_drag_threshold", cmd_tiling_drag_threshold },
|
||||
{ "title_align", cmd_title_align },
|
||||
{ "titlebar_border_thickness", cmd_titlebar_border_thickness },
|
||||
{ "titlebar_padding", cmd_titlebar_padding },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue