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 | |
parent | Merge pull request #1863 from RyanDwyer/remove-workspace-layout (diff) | |
download | sway-ff61df17ffd358b03663a35fe7140e51e1ee98fc.tar.gz sway-ff61df17ffd358b03663a35fe7140e51e1ee98fc.tar.zst sway-ff61df17ffd358b03663a35fe7140e51e1ee98fc.zip |
Add map_from_region command
Diffstat (limited to 'include')
-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; | |||
193 | sway_cmd input_cmd_dwt; | 193 | sway_cmd input_cmd_dwt; |
194 | sway_cmd input_cmd_events; | 194 | sway_cmd input_cmd_events; |
195 | sway_cmd input_cmd_left_handed; | 195 | sway_cmd input_cmd_left_handed; |
196 | sway_cmd input_cmd_map_from_region; | ||
196 | sway_cmd input_cmd_map_to_output; | 197 | sway_cmd input_cmd_map_to_output; |
197 | sway_cmd input_cmd_middle_emulation; | 198 | sway_cmd input_cmd_middle_emulation; |
198 | sway_cmd input_cmd_natural_scroll; | 199 | 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 { | |||
51 | list_t *keycode_bindings; | 51 | list_t *keycode_bindings; |
52 | }; | 52 | }; |
53 | 53 | ||
54 | struct 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; |