diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-26 12:32:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-26 12:32:10 +0200 |
commit | 64e0731cc7206e8becfe6f80bc58362aa53f07b6 (patch) | |
tree | 3736887591d8464f577d2ad4a753a404d38d77ae /include | |
parent | Merge pull request #1863 from RyanDwyer/remove-workspace-layout (diff) | |
parent | Add map_from_region command (diff) | |
download | sway-64e0731cc7206e8becfe6f80bc58362aa53f07b6.tar.gz sway-64e0731cc7206e8becfe6f80bc58362aa53f07b6.tar.zst sway-64e0731cc7206e8becfe6f80bc58362aa53f07b6.zip |
Merge pull request #1860 from emersion/input-map-from
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; |