diff options
author | Scott Anderson <ascent12@hotmail.com> | 2017-09-24 12:06:00 +1300 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2017-09-24 12:06:00 +1300 |
commit | a466c86fba69e491ffbec1cacc440bee30ae9e63 (patch) | |
tree | 65bcfa5d422eb5d0d504496781a4d6d9cf6773f9 /backend | |
parent | db5e9385d4e1492630611265afcffd9b86867489 (diff) |
Set state properly
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/drm.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; } |