mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05:00
Update for swaywm/wlroots#1126
This commit is contained in:
parent
ebcdce457a
commit
63b4bf5000
85 changed files with 391 additions and 385 deletions
|
|
@ -8,13 +8,13 @@
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
@ -112,7 +112,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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue