aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/config.h
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-01-01 08:45:21 -0500
committerLibravatar emersion <contact@emersion.fr>2019-01-02 23:33:33 +0100
commit5bf4daf2634929e7c94a6c7e56eda66d4667ca2f (patch)
tree1a5b0c1300c056cdd48f9d819e960e1336c46602 /include/sway/config.h
parentFix fullscreen view rendering crash (diff)
downloadsway-5bf4daf2634929e7c94a6c7e56eda66d4667ca2f.tar.gz
sway-5bf4daf2634929e7c94a6c7e56eda66d4667ca2f.tar.zst
sway-5bf4daf2634929e7c94a6c7e56eda66d4667ca2f.zip
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`.
Diffstat (limited to 'include/sway/config.h')
-rw-r--r--include/sway/config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index f604b054..ebf16e6a 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -426,7 +426,9 @@ struct sway_config {
426 bool auto_back_and_forth; 426 bool auto_back_and_forth;
427 bool show_marks; 427 bool show_marks;
428 enum alignment title_align; 428 enum alignment title_align;
429
429 bool tiling_drag; 430 bool tiling_drag;
431 int tiling_drag_threshold;
430 432
431 bool smart_gaps; 433 bool smart_gaps;
432 int gaps_inner; 434 int gaps_inner;