diff options
author | Rouven Czerwinski <rouven@czerwinskis.de> | 2018-10-10 11:28:37 +0200 |
---|---|---|
committer | Rouven Czerwinski <rouven@czerwinskis.de> | 2018-10-10 12:45:21 +0200 |
commit | 41991542cac1d909a55fc834d231fe747097b1a4 (patch) | |
tree | 0e0eba7984d8e98b70c29159a2792ec1e39b9351 /include/sway | |
parent | 87bc707e9b21a6b06c8aec2c0ff1e823abf9bda4 (diff) | |
download | sway-41991542cac1d909a55fc834d231fe747097b1a4.tar.xz |
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')
-rw-r--r-- | include/sway/config.h | 8 |
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 { WRAP_FORCE }; +enum mouse_warping_mode { + WARP_NO, + WARP_OUTPUT, + WARP_CONTAINER +}; + /** * The configuration struct. The result of loading a config file. */ @@ -366,7 +372,7 @@ struct sway_config { // Flags bool focus_follows_mouse; bool raise_floating; - bool mouse_warping; + enum mouse_warping_mode mouse_warping; enum focus_wrapping_mode focus_wrapping; bool active; bool failed; |