From a466c86fba69e491ffbec1cacc440bee30ae9e63 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Sun, 24 Sep 2017 12:06:00 +1300 Subject: Set state properly --- backend/drm/drm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'backend/drm') diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 712a06b6..8e70e528 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -307,7 +307,7 @@ static void wlr_drm_output_swap_buffers(struct wlr_output *_output) { output->pageflip_pending = true; } else { wl_event_source_timer_update(output->retry_pageflip, - output->output.current_mode->refresh); + 1000.0f / output->output.current_mode->refresh); } } @@ -358,7 +358,7 @@ void wlr_drm_output_start_renderer(struct wlr_drm_output *output) { output->pageflip_pending = true; } else { wl_event_source_timer_update(output->retry_pageflip, - output->output.current_mode->refresh); + 1000.0f / output->output.current_mode->refresh); } } @@ -1006,4 +1006,6 @@ void wlr_drm_output_cleanup(struct wlr_drm_output *output) { case WLR_DRM_OUTPUT_DISCONNECTED: break; } + + output->state = WLR_DRM_OUTPUT_DISCONNECTED; } -- cgit v1.2.3