mirror of
https://github.com/swaywm/sway.git
synced 2024-11-29 11:21:28 +00:00
Call apply_output_config instead of output_enable
apply_output_config will call output_enable if necessary. This fixes a lone wlr_output_enable call (without a matching wlr_output_commit call) which was a no-op.
This commit is contained in:
parent
555b0d4087
commit
5e90080468
|
@ -896,11 +896,7 @@ void handle_new_output(struct wl_listener *listener, void *data) {
|
||||||
output_repaint_timer_handler, output);
|
output_repaint_timer_handler, output);
|
||||||
|
|
||||||
struct output_config *oc = find_output_config(output);
|
struct output_config *oc = find_output_config(output);
|
||||||
if (!oc || oc->enabled) {
|
apply_output_config(oc, output);
|
||||||
output_enable(output, oc);
|
|
||||||
} else {
|
|
||||||
wlr_output_enable(output->wlr_output, false);
|
|
||||||
}
|
|
||||||
free_output_config(oc);
|
free_output_config(oc);
|
||||||
|
|
||||||
transaction_commit_dirty();
|
transaction_commit_dirty();
|
||||||
|
|
Loading…
Reference in a new issue