aboutsummaryrefslogtreecommitdiff
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;
sway_cmd input_cmd_dwt;
sway_cmd input_cmd_events;
sway_cmd input_cmd_left_handed;
+sway_cmd input_cmd_map_from_region;
sway_cmd input_cmd_map_to_output;
sway_cmd input_cmd_middle_emulation;
sway_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 {
list_t *keycode_bindings;
};
+struct input_config_mapped_from_region {
+ double x1, y1;
+ double x2, y2;
+ bool mm;
+};
+
/**
* options for input devices
*/
@@ -77,7 +83,8 @@ struct input_config {
char *xkb_rules;
char *xkb_variant;
- char *mapped_output;
+ struct input_config_mapped_from_region *mapped_from_region;
+ char *mapped_to_output;
bool capturable;
struct wlr_box region;