aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/config.h
diff options
context:
space:
mode:
authorLibravatar Rouven Czerwinski <rouven@czerwinskis.de>2018-10-10 11:28:37 +0200
committerLibravatar Rouven Czerwinski <rouven@czerwinskis.de>2018-10-10 12:45:21 +0200
commit41991542cac1d909a55fc834d231fe747097b1a4 (patch)
tree0e0eba7984d8e98b70c29159a2792ec1e39b9351 /include/sway/config.h
parentMerge pull request #2812 from RyanDwyer/fix-version-messages (diff)
downloadsway-41991542cac1d909a55fc834d231fe747097b1a4.tar.gz
sway-41991542cac1d909a55fc834d231fe747097b1a4.tar.zst
sway-41991542cac1d909a55fc834d231fe747097b1a4.zip
Add mouse_warping container
This option always moves the cursor into the middle of the container if the warp variable is true in seat_set_focus_warp. Fixes #2577
Diffstat (limited to 'include/sway/config.h')
-rw-r--r--include/sway/config.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index 00b5f25b..0325042c 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -325,6 +325,12 @@ enum focus_wrapping_mode {
325 WRAP_FORCE 325 WRAP_FORCE
326}; 326};
327 327
328enum mouse_warping_mode {
329 WARP_NO,
330 WARP_OUTPUT,
331 WARP_CONTAINER
332};
333
328/** 334/**
329 * The configuration struct. The result of loading a config file. 335 * The configuration struct. The result of loading a config file.
330 */ 336 */
@@ -366,7 +372,7 @@ struct sway_config {
366 // Flags 372 // Flags
367 bool focus_follows_mouse; 373 bool focus_follows_mouse;
368 bool raise_floating; 374 bool raise_floating;
369 bool mouse_warping; 375 enum mouse_warping_mode mouse_warping;
370 enum focus_wrapping_mode focus_wrapping; 376 enum focus_wrapping_mode focus_wrapping;
371 bool active; 377 bool active;
372 bool failed; 378 bool failed;