From 7f54495b5e62a65627cdb61f099e241f0594a6d9 Mon Sep 17 00:00:00 2001 From: Tadeo Kondrak Date: Fri, 1 Nov 2019 11:37:29 -0600 Subject: Use an enum instead of a marker string for map_to_ --- include/sway/config.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') 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; -- cgit v1.2.3-54-g00ecf