diff options
Diffstat (limited to 'include/sway/config.h')
-rw-r--r-- | include/sway/config.h | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index 5a355139..4927b8e0 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -100,6 +100,7 @@ struct input_config { | |||
100 | int middle_emulation; | 100 | int middle_emulation; |
101 | int natural_scroll; | 101 | int natural_scroll; |
102 | float pointer_accel; | 102 | float pointer_accel; |
103 | float scroll_factor; | ||
103 | int repeat_delay; | 104 | int repeat_delay; |
104 | int repeat_rate; | 105 | int repeat_rate; |
105 | int scroll_button; | 106 | int scroll_button; |
@@ -168,14 +169,24 @@ struct output_config { | |||
168 | }; | 169 | }; |
169 | 170 | ||
170 | /** | 171 | /** |
172 | * Stores size of gaps for each side | ||
173 | */ | ||
174 | struct side_gaps { | ||
175 | int top; | ||
176 | int right; | ||
177 | int bottom; | ||
178 | int left; | ||
179 | }; | ||
180 | |||
181 | /** | ||
171 | * Stores configuration for a workspace, regardless of whether the workspace | 182 | * Stores configuration for a workspace, regardless of whether the workspace |
172 | * exists. | 183 | * exists. |
173 | */ | 184 | */ |
174 | struct workspace_config { | 185 | struct workspace_config { |
175 | char *workspace; | 186 | char *workspace; |
176 | char *output; | 187 | list_t *outputs; |
177 | int gaps_inner; | 188 | int gaps_inner; |
178 | int gaps_outer; | 189 | struct side_gaps gaps_outer; |
179 | }; | 190 | }; |
180 | 191 | ||
181 | struct bar_config { | 192 | struct bar_config { |
@@ -328,6 +339,12 @@ struct ipc_policy { | |||
328 | uint32_t features; | 339 | uint32_t features; |
329 | }; | 340 | }; |
330 | 341 | ||
342 | enum focus_follows_mouse_mode { | ||
343 | FOLLOWS_NO, | ||
344 | FOLLOWS_YES, | ||
345 | FOLLOWS_ALWAYS | ||
346 | }; | ||
347 | |||
331 | enum focus_wrapping_mode { | 348 | enum focus_wrapping_mode { |
332 | WRAP_NO, | 349 | WRAP_NO, |
333 | WRAP_YES, | 350 | WRAP_YES, |
@@ -379,7 +396,7 @@ struct sway_config { | |||
379 | enum sway_popup_during_fullscreen popup_during_fullscreen; | 396 | enum sway_popup_during_fullscreen popup_during_fullscreen; |
380 | 397 | ||
381 | // Flags | 398 | // Flags |
382 | bool focus_follows_mouse; | 399 | enum focus_follows_mouse_mode focus_follows_mouse; |
383 | enum mouse_warping_mode mouse_warping; | 400 | enum mouse_warping_mode mouse_warping; |
384 | enum focus_wrapping_mode focus_wrapping; | 401 | enum focus_wrapping_mode focus_wrapping; |
385 | bool active; | 402 | bool active; |
@@ -393,7 +410,7 @@ struct sway_config { | |||
393 | 410 | ||
394 | bool smart_gaps; | 411 | bool smart_gaps; |
395 | int gaps_inner; | 412 | int gaps_inner; |
396 | int gaps_outer; | 413 | struct side_gaps gaps_outer; |
397 | 414 | ||
398 | list_t *config_chain; | 415 | list_t *config_chain; |
399 | const char *current_config_path; | 416 | const char *current_config_path; |