summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-03-25 22:05:49 -0400
committerFurkan Sahin <furkan-dev@proton.me>2019-03-25 22:05:49 -0400
commita105e9dbb896d8b5789bd47ce19428647f0544cf (patch)
tree3a44b51a2c5a78bfbde227180c3853875a2258a4 /include
parent16300ca2d9ea6141f1daf7cc5866fb5c6a016bad (diff)
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')
-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 {
*/
struct input_config {
char *identifier;
+ const char *input_type;
int accel_profile;
int click_method;
@@ -418,6 +419,7 @@ struct sway_config {
list_t *workspace_configs;
list_t *output_configs;
list_t *input_configs;
+ list_t *input_type_configs;
list_t *seat_configs;
list_t *criteria;
list_t *no_focus;