diff options
author | Connor E <38229097+c-edw@users.noreply.github.com> | 2018-11-06 20:58:08 +0000 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-11-06 21:58:08 +0100 |
commit | 4a21981855a340c549db99d286590c369895da87 (patch) | |
tree | 76c83b88d97471f871454e828b403f27043a6876 /include/sway/config.h | |
parent | 001ec1f3fdd700c23fb6dc91018697130af225ff (diff) |
Add focus_follows_mouse always. (#3081)
* Add focus_follows_mouse_mode.
* Fail if focus_follows_mouse is invalid.
* Fix indentation.
Diffstat (limited to 'include/sway/config.h')
-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 852d5576..0912bc73 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -327,6 +327,12 @@ struct ipc_policy { uint32_t features; }; +enum focus_follows_mouse_mode { + FOLLOWS_NO, + FOLLOWS_YES, + FOLLOWS_ALWAYS +}; + enum focus_wrapping_mode { WRAP_NO, WRAP_YES, @@ -378,7 +384,7 @@ struct sway_config { enum sway_popup_during_fullscreen popup_during_fullscreen; // Flags - bool focus_follows_mouse; + enum focus_follows_mouse_mode focus_follows_mouse; enum mouse_warping_mode mouse_warping; enum focus_wrapping_mode focus_wrapping; bool active; |