diff options
| author | Ryan Dwyer <RyanDwyer@users.noreply.github.com> | 2018-07-18 09:32:03 +1000 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-18 09:32:03 +1000 | 
| commit | 8ce7e3b44eea0a270ecc35a9da2ae801aaf6bce1 (patch) | |
| tree | 6badffb0c6ee33b4e23e914c4c9f9b39a625b5f3 /sway/config/input.c | |
| parent | 621d2666b1ac214c63628bbe0ac8f5d6485cb501 (diff) | |
| parent | 48b911a4596f50b585a1073d32413236d9defb60 (diff) | |
| download | sway-8ce7e3b44eea0a270ecc35a9da2ae801aaf6bce1.tar.xz | |
Merge branch 'master' into destroy-output-destroy-empty-workspaces
Diffstat (limited to 'sway/config/input.c')
| -rw-r--r-- | sway/config/input.c | 16 | 
1 files changed, 12 insertions, 4 deletions
| diff --git a/sway/config/input.c b/sway/config/input.c index 17303ccc..8d687a6d 100644 --- a/sway/config/input.c +++ b/sway/config/input.c @@ -8,17 +8,18 @@  struct input_config *new_input_config(const char* identifier) {  	struct input_config *input = calloc(1, sizeof(struct input_config));  	if (!input) { -		wlr_log(L_DEBUG, "Unable to allocate input config"); +		wlr_log(WLR_DEBUG, "Unable to allocate input config");  		return NULL;  	} -	wlr_log(L_DEBUG, "new_input_config(%s)", identifier); +	wlr_log(WLR_DEBUG, "new_input_config(%s)", identifier);  	if (!(input->identifier = strdup(identifier))) {  		free(input); -		wlr_log(L_DEBUG, "Unable to allocate input config"); +		wlr_log(WLR_DEBUG, "Unable to allocate input config");  		return NULL;  	}  	input->tap = INT_MIN; +	input->tap_button_map = INT_MIN;  	input->drag_lock = INT_MIN;  	input->dwt = INT_MIN;  	input->send_events = INT_MIN; @@ -27,6 +28,7 @@ struct input_config *new_input_config(const char* identifier) {  	input->natural_scroll = INT_MIN;  	input->accel_profile = INT_MIN;  	input->pointer_accel = FLT_MIN; +	input->scroll_button = INT_MIN;  	input->scroll_method = INT_MIN;  	input->left_handed = INT_MIN;  	input->repeat_delay = INT_MIN; @@ -70,12 +72,18 @@ void merge_input_config(struct input_config *dst, struct input_config *src) {  	if (src->scroll_method != INT_MIN) {  		dst->scroll_method = src->scroll_method;  	} +	if (src->scroll_button != INT_MIN) { +		dst->scroll_button = src->scroll_button; +	}  	if (src->send_events != INT_MIN) {  		dst->send_events = src->send_events;  	}  	if (src->tap != INT_MIN) {  		dst->tap = src->tap;  	} +	if (src->tap_button_map != INT_MIN) { +		dst->tap_button_map = src->tap_button_map; +	}  	if (src->xkb_layout) {  		free(dst->xkb_layout);  		dst->xkb_layout = strdup(src->xkb_layout); @@ -112,7 +120,7 @@ void merge_input_config(struct input_config *dst, struct input_config *src) {  struct input_config *copy_input_config(struct input_config *ic) {  	struct input_config *copy = calloc(1, sizeof(struct input_config));  	if (copy == NULL) { -		wlr_log(L_ERROR, "could not allocate input config"); +		wlr_log(WLR_ERROR, "could not allocate input config");  		return NULL;  	}  	merge_input_config(copy, ic); | 
