mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
backend/drm: fix DPMS on legacy interface
This mirrors what the atomic code does in create_mode_blob. Closes: https://github.com/swaywm/wlroots/issues/2312
This commit is contained in:
parent
a54ed85881
commit
f82a27f55a
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ static bool legacy_crtc_commit(struct wlr_drm_backend *drm,
|
||||||
uint32_t *conns = NULL;
|
uint32_t *conns = NULL;
|
||||||
size_t conns_len = 0;
|
size_t conns_len = 0;
|
||||||
drmModeModeInfo *mode = NULL;
|
drmModeModeInfo *mode = NULL;
|
||||||
if (crtc->pending.mode != NULL) {
|
if (crtc->pending.active) {
|
||||||
conns = &conn->id;
|
conns = &conn->id;
|
||||||
conns_len = 1;
|
conns_len = 1;
|
||||||
mode = &crtc->pending.mode->drm_mode;
|
mode = &crtc->pending.mode->drm_mode;
|
||||||
|
|
Loading…
Reference in a new issue