mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
Generalize DPMS, remove DRM refs from example
This commit is contained in:
parent
03c9b46034
commit
fee409bd0a
10 changed files with 65 additions and 50 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue