aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-02-02 22:27:18 +0100
committeremersion <contact@emersion.fr>2018-02-02 22:28:08 +0100
commitbb39277e9772b0943e8e292e2a7eed9c5aac59e2 (patch)
tree4ca646f23ffdbb089444e632516a56876b4bcc9e /backend
parent39d5e78d37033d439e1eac9176e4e3bd8829f071 (diff)
backend/drm: update output enabled property on modeset
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/drm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index cdd2f57e..f6cc084e 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -207,6 +207,7 @@ static void wlr_drm_connector_swap_buffers(struct wlr_output *output) {
if (drm->iface->crtc_pageflip(drm, conn, crtc, fb_id, NULL)) {
conn->pageflip_pending = true;
+ wlr_output_update_enabled(output, true);
} else {
wl_event_source_timer_update(conn->retry_pageflip,
1000.0f / conn->output.current_mode->refresh);
@@ -245,6 +246,7 @@ void wlr_drm_connector_start_renderer(struct wlr_drm_connector *conn) {
struct wlr_drm_mode *mode = (struct wlr_drm_mode *)conn->output.current_mode;
if (drm->iface->crtc_pageflip(drm, conn, crtc, fb_id, &mode->drm_mode)) {
conn->pageflip_pending = true;
+ wlr_output_update_enabled(&conn->output, true);
} else {
wl_event_source_timer_update(conn->retry_pageflip,
1000.0f / conn->output.current_mode->refresh);