diff options
author | Scott Anderson <ascent12@hotmail.com> | 2017-08-06 21:42:36 +1200 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2017-08-06 21:42:36 +1200 |
commit | d307c2f2c267a2226c4b279da334b1964272cf18 (patch) | |
tree | a4160a523db9701c93be358c34b2bf14a59a9a7d /backend/drm/drm.c | |
parent | 1db97a9af906524b577e5f1a4f842e18a0a942a4 (diff) |
Renamed some variables to be less generic
Diffstat (limited to 'backend/drm/drm.c')
-rw-r--r-- | backend/drm/drm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 5de99b78..67a48dda 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -753,8 +753,8 @@ void wlr_drm_scan_connectors(struct wlr_backend_state *drm) { static void page_flip_handler(int fd, unsigned seq, unsigned tv_sec, unsigned tv_usec, void *user) { struct wlr_output_state *output = user; - struct wlr_backend_state *state = - wl_container_of(output->renderer, state, renderer); + struct wlr_backend_state *drm = + wl_container_of(output->renderer, drm, renderer); struct wlr_drm_plane *plane = output->crtc->primary; if (plane->front) { @@ -763,7 +763,7 @@ static void page_flip_handler(int fd, unsigned seq, } output->pageflip_pending = false; - if (output->state == WLR_DRM_OUTPUT_CONNECTED && state->session->active) { + if (output->state == WLR_DRM_OUTPUT_CONNECTED && drm->session->active) { wl_signal_emit(&output->base->events.frame, output->base); } } @@ -800,7 +800,7 @@ void wlr_drm_output_cleanup(struct wlr_output_state *output, bool restore) { } struct wlr_drm_renderer *renderer = output->renderer; - struct wlr_backend_state *state = wl_container_of(renderer, state, renderer); + struct wlr_backend_state *drm = wl_container_of(renderer, drm, renderer); switch (output->state) { case WLR_DRM_OUTPUT_CONNECTED: @@ -828,7 +828,7 @@ void wlr_drm_output_cleanup(struct wlr_output_state *output, bool restore) { restore_output(output, renderer->fd); } wlr_log(L_INFO, "Emmiting destruction signal for '%s'", output->base->name); - wl_signal_emit(&state->base->events.output_remove, output->base); + wl_signal_emit(&drm->base->events.output_remove, output->base); break; case WLR_DRM_OUTPUT_DISCONNECTED: break; |