Generalize DPMS, remove DRM refs from example

This commit is contained in:
Drew DeVault 2017-05-31 15:38:26 -04:00
parent 03c9b46034
commit fee409bd0a
10 changed files with 65 additions and 50 deletions

View file

@ -101,11 +101,3 @@ error_backend:
free(backend);
return NULL;
}
void wlr_drm_backend_dpms(struct wlr_backend *backend, bool screen_on) {
struct wlr_backend_state *state = backend->state;
for (size_t i = 0; i < state->outputs->length; ++i) {
struct wlr_output_state *output = state->outputs->items[i];
wlr_drm_output_dpms(state->fd, output, screen_on);
}
}