mirror of
https://github.com/swaywm/sway.git
synced 2025-11-18 06:59:48 -05:00
Use an enum instead of a marker string for map_to_
This commit is contained in:
parent
4829f1c26a
commit
7f54495b5e
5 changed files with 45 additions and 40 deletions
|
|
@ -108,6 +108,12 @@ struct calibration_matrix {
|
|||
float matrix[6];
|
||||
};
|
||||
|
||||
enum input_config_mapped_to {
|
||||
MAPPED_TO_DEFAULT,
|
||||
MAPPED_TO_OUTPUT,
|
||||
MAPPED_TO_REGION
|
||||
};
|
||||
|
||||
/**
|
||||
* options for input devices
|
||||
*/
|
||||
|
|
@ -147,6 +153,8 @@ struct input_config {
|
|||
int xkb_capslock;
|
||||
|
||||
struct input_config_mapped_from_region *mapped_from_region;
|
||||
|
||||
enum input_config_mapped_to mapped_to;
|
||||
char *mapped_to_output;
|
||||
struct wlr_box *mapped_to_region;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue