mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
DPMS support
This commit is contained in:
parent
c436e76240
commit
599d1bcbdc
5 changed files with 80 additions and 1 deletions
|
|
@ -101,3 +101,11 @@ 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