mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
output: call wlr_output_update_enabled() after commit
Backends no longer need to manually call wlr_output_update_enabled() in their commit hook: wlr_output will take care of that.
This commit is contained in:
parent
fdb24d19ca
commit
ef5e2cc5e3
2 changed files with 4 additions and 3 deletions
|
@ -595,9 +595,6 @@ bool drm_connector_commit_state(struct wlr_drm_connector *conn,
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pending.base->committed & WLR_OUTPUT_STATE_ENABLED) {
|
|
||||||
wlr_output_update_enabled(&conn->output, pending.active);
|
|
||||||
}
|
|
||||||
if (pending.base->committed & WLR_OUTPUT_STATE_MODE) {
|
if (pending.base->committed & WLR_OUTPUT_STATE_MODE) {
|
||||||
struct wlr_output_mode *mode = NULL;
|
struct wlr_output_mode *mode = NULL;
|
||||||
switch (pending.base->mode_type) {
|
switch (pending.base->mode_type) {
|
||||||
|
|
|
@ -789,6 +789,10 @@ bool wlr_output_commit_state(struct wlr_output *output,
|
||||||
|
|
||||||
output->commit_seq++;
|
output->commit_seq++;
|
||||||
|
|
||||||
|
if (pending.committed & WLR_OUTPUT_STATE_ENABLED) {
|
||||||
|
wlr_output_update_enabled(output, pending.enabled);
|
||||||
|
}
|
||||||
|
|
||||||
bool scale_updated = pending.committed & WLR_OUTPUT_STATE_SCALE;
|
bool scale_updated = pending.committed & WLR_OUTPUT_STATE_SCALE;
|
||||||
if (scale_updated) {
|
if (scale_updated) {
|
||||||
output->scale = pending.scale;
|
output->scale = pending.scale;
|
||||||
|
|
Loading…
Reference in a new issue