aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/config.h
diff options
context:
space:
mode:
authorLibravatar Benjamin Cheng <ben@bcheng.me>2019-03-25 22:05:49 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-04-14 19:31:36 -0400
commitbd3720585e91ae0dfcc4be30149ae4f8f5218174 (patch)
tree3a44b51a2c5a78bfbde227180c3853875a2258a4 /include/sway/config.h
parentAdd heuristics to differentiate touchpads (diff)
downloadsway-bd3720585e91ae0dfcc4be30149ae4f8f5218174.tar.gz
sway-bd3720585e91ae0dfcc4be30149ae4f8f5218174.tar.zst
sway-bd3720585e91ae0dfcc4be30149ae4f8f5218174.zip
Implement input type configs (#3784)
Add support for configurations that apply to a type of inputs (i.e. natural scrolling on all touchpads). A type config is differentiated by a `type:` prefix followed by the type it corresponds to. When new devices appear, the device config is merged on top of its type config (if it exists). New type configs are applied on top of existing configs.
Diffstat (limited to 'include/sway/config.h')
-rw-r--r--include/sway/config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index fe06fb9d..86410544 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -105,6 +105,7 @@ struct input_config_mapped_from_region {
105 */ 105 */
106struct input_config { 106struct input_config {
107 char *identifier; 107 char *identifier;
108 const char *input_type;
108 109
109 int accel_profile; 110 int accel_profile;
110 int click_method; 111 int click_method;
@@ -418,6 +419,7 @@ struct sway_config {
418 list_t *workspace_configs; 419 list_t *workspace_configs;
419 list_t *output_configs; 420 list_t *output_configs;
420 list_t *input_configs; 421 list_t *input_configs;
422 list_t *input_type_configs;
421 list_t *seat_configs; 423 list_t *seat_configs;
422 list_t *criteria; 424 list_t *criteria;
423 list_t *no_focus; 425 list_t *no_focus;