mirror of
https://github.com/swaywm/sway.git
synced 2024-11-10 12:33:50 +01:00
Add missing wlr_output_state_init() calls
This commit is contained in:
parent
cbf06cfdfb
commit
256dcdd547
@ -515,6 +515,7 @@ bool apply_output_config(struct output_config *oc, struct sway_output *output) {
|
|||||||
output->enabling = (!oc || oc->enabled);
|
output->enabling = (!oc || oc->enabled);
|
||||||
|
|
||||||
struct wlr_output_state pending = {0};
|
struct wlr_output_state pending = {0};
|
||||||
|
wlr_output_state_init(&pending, output->wlr_output);
|
||||||
queue_output_config(oc, output, &pending);
|
queue_output_config(oc, output, &pending);
|
||||||
|
|
||||||
sway_log(SWAY_DEBUG, "Committing output %s", wlr_output->name);
|
sway_log(SWAY_DEBUG, "Committing output %s", wlr_output->name);
|
||||||
@ -599,6 +600,7 @@ bool test_output_config(struct output_config *oc, struct sway_output *output) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct wlr_output_state pending = {0};
|
struct wlr_output_state pending = {0};
|
||||||
|
wlr_output_state_init(&pending, output->wlr_output);
|
||||||
queue_output_config(oc, output, &pending);
|
queue_output_config(oc, output, &pending);
|
||||||
return wlr_output_test_state(output->wlr_output, &pending);
|
return wlr_output_test_state(output->wlr_output, &pending);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user