diff options
author | emersion <contact@emersion.fr> | 2018-04-24 19:39:29 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-04-26 10:53:47 +0100 |
commit | ff61df17ffd358b03663a35fe7140e51e1ee98fc (patch) | |
tree | 3736887591d8464f577d2ad4a753a404d38d77ae /include/sway | |
parent | d94bb78ff3ade39cc848d0acfd571b9ac6917868 (diff) |
Add map_from_region command
Diffstat (limited to 'include/sway')
-rw-r--r-- | include/sway/commands.h | 1 | ||||
-rw-r--r-- | include/sway/config.h | 9 |
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; |