summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-05-28 10:30:11 +0100
committerLibravatar GitHub <noreply@github.com>2018-05-28 10:30:11 +0100
commit1071785f56676218a059e4d6fa10def630e5129b (patch)
treef3ec325fc9e67af920c94454e2f6f2a5766d8b88 /include
parentMerge pull request #2058 from RyanDwyer/refactor-parse-title-format (diff)
parentImplement focus_wrapping (diff)
downloadsway-1071785f56676218a059e4d6fa10def630e5129b.tar.gz
sway-1071785f56676218a059e4d6fa10def630e5129b.tar.zst
sway-1071785f56676218a059e4d6fa10def630e5129b.zip
Merge pull request #2060 from RedSoxFan/focus-wrapping
Implement focus_wrapping
Diffstat (limited to 'include')
-rw-r--r--include/sway/commands.h2
-rw-r--r--include/sway/config.h8
2 files changed, 8 insertions, 2 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h
index 365068ae..87a8c23a 100644
--- a/include/sway/commands.h
+++ b/include/sway/commands.h
@@ -106,9 +106,9 @@ sway_cmd cmd_floating_mod;
106sway_cmd cmd_floating_scroll; 106sway_cmd cmd_floating_scroll;
107sway_cmd cmd_focus; 107sway_cmd cmd_focus;
108sway_cmd cmd_focus_follows_mouse; 108sway_cmd cmd_focus_follows_mouse;
109sway_cmd cmd_focus_wrapping;
109sway_cmd cmd_font; 110sway_cmd cmd_font;
110sway_cmd cmd_for_window; 111sway_cmd cmd_for_window;
111sway_cmd cmd_force_focus_wrapping;
112sway_cmd cmd_fullscreen; 112sway_cmd cmd_fullscreen;
113sway_cmd cmd_gaps; 113sway_cmd cmd_gaps;
114sway_cmd cmd_hide_edge_borders; 114sway_cmd cmd_hide_edge_borders;
diff --git a/include/sway/config.h b/include/sway/config.h
index 118981e3..de651ea4 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -285,6 +285,12 @@ struct ipc_policy {
285 uint32_t features; 285 uint32_t features;
286}; 286};
287 287
288enum focus_wrapping_mode {
289 WRAP_NO,
290 WRAP_YES,
291 WRAP_FORCE
292};
293
288/** 294/**
289 * The configuration struct. The result of loading a config file. 295 * The configuration struct. The result of loading a config file.
290 */ 296 */
@@ -320,7 +326,7 @@ struct sway_config {
320 // Flags 326 // Flags
321 bool focus_follows_mouse; 327 bool focus_follows_mouse;
322 bool mouse_warping; 328 bool mouse_warping;
323 bool force_focus_wrapping; 329 enum focus_wrapping_mode focus_wrapping;
324 bool active; 330 bool active;
325 bool failed; 331 bool failed;
326 bool reloading; 332 bool reloading;