diff options
Diffstat (limited to 'backend/drm/backend.c')
-rw-r--r-- | backend/drm/backend.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/backend/drm/backend.c b/backend/drm/backend.c index 0da84745..f202d4d6 100644 --- a/backend/drm/backend.c +++ b/backend/drm/backend.c @@ -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); + } +} |