summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sway/commands.h1
-rw-r--r--include/sway/config.h9
2 files changed, 9 insertions, 1 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h
index 75534163..0732a90a 100644
--- a/include/sway/commands.h
+++ b/include/sway/commands.h
@@ -193,6 +193,7 @@ sway_cmd input_cmd_drag_lock;
193sway_cmd input_cmd_dwt; 193sway_cmd input_cmd_dwt;
194sway_cmd input_cmd_events; 194sway_cmd input_cmd_events;
195sway_cmd input_cmd_left_handed; 195sway_cmd input_cmd_left_handed;
196sway_cmd input_cmd_map_from_region;
196sway_cmd input_cmd_map_to_output; 197sway_cmd input_cmd_map_to_output;
197sway_cmd input_cmd_middle_emulation; 198sway_cmd input_cmd_middle_emulation;
198sway_cmd input_cmd_natural_scroll; 199sway_cmd input_cmd_natural_scroll;
diff --git a/include/sway/config.h b/include/sway/config.h
index 085f7b92..87123289 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -51,6 +51,12 @@ struct sway_mode {
51 list_t *keycode_bindings; 51 list_t *keycode_bindings;
52}; 52};
53 53
54struct input_config_mapped_from_region {
55 double x1, y1;
56 double x2, y2;
57 bool mm;
58};
59
54/** 60/**
55 * options for input devices 61 * options for input devices
56 */ 62 */
@@ -77,7 +83,8 @@ struct input_config {
77 char *xkb_rules; 83 char *xkb_rules;
78 char *xkb_variant; 84 char *xkb_variant;
79 85
80 char *mapped_output; 86 struct input_config_mapped_from_region *mapped_from_region;
87 char *mapped_to_output;
81 88
82 bool capturable; 89 bool capturable;
83 struct wlr_box region; 90 struct wlr_box region;