diff options
author | Tadeo Kondrak <me@tadeo.ca> | 2019-11-01 11:37:29 -0600 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-11-17 13:34:24 +0100 |
commit | 7f54495b5e62a65627cdb61f099e241f0594a6d9 (patch) | |
tree | a0480453d0721ab7df31a43c1e45c7fd7dbeb3d5 /include/sway | |
parent | 4829f1c26a521a4ef6659d91505112cc0be8d237 (diff) |
Use an enum instead of a marker string for map_to_
Diffstat (limited to 'include/sway')
-rw-r--r-- | include/sway/config.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index 0a010c6d..6892c946 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -108,6 +108,12 @@ struct calibration_matrix { float matrix[6]; }; +enum input_config_mapped_to { + MAPPED_TO_DEFAULT, + MAPPED_TO_OUTPUT, + MAPPED_TO_REGION +}; + /** * options for input devices */ @@ -147,6 +153,8 @@ struct input_config { int xkb_capslock; struct input_config_mapped_from_region *mapped_from_region; + + enum input_config_mapped_to mapped_to; char *mapped_to_output; struct wlr_box *mapped_to_region; |