Implement focus_wrapping

This commit is contained in:
Brian Ashworth 2018-05-27 23:20:21 -04:00
parent b2c0ba5b18
commit 46da1dc32b
8 changed files with 59 additions and 10 deletions

View file

@ -285,6 +285,12 @@ struct ipc_policy {
uint32_t features;
};
enum focus_wrapping_mode {
WRAP_NO,
WRAP_YES,
WRAP_FORCE
};
/**
* The configuration struct. The result of loading a config file.
*/
@ -320,7 +326,7 @@ struct sway_config {
// Flags
bool focus_follows_mouse;
bool mouse_warping;
bool force_focus_wrapping;
enum focus_wrapping_mode focus_wrapping;
bool active;
bool failed;
bool reloading;