Set state properly

This commit is contained in:
Scott Anderson 2017-09-24 12:06:00 +13:00
parent db5e9385d4
commit a466c86fba
1 changed files with 4 additions and 2 deletions

View File

@ -307,7 +307,7 @@ static void wlr_drm_output_swap_buffers(struct wlr_output *_output) {
output->pageflip_pending = true; output->pageflip_pending = true;
} else { } else {
wl_event_source_timer_update(output->retry_pageflip, 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; output->pageflip_pending = true;
} else { } else {
wl_event_source_timer_update(output->retry_pageflip, 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: case WLR_DRM_OUTPUT_DISCONNECTED:
break; break;
} }
output->state = WLR_DRM_OUTPUT_DISCONNECTED;
} }