Add map_from_region command

This commit is contained in:
emersion 2018-04-24 19:39:29 +01:00
parent d94bb78ff3
commit ff61df17ff
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
11 changed files with 160 additions and 25 deletions

View file

@ -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;