mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
Fix output enable in DRM backend
This commit is contained in:
parent
8ebd7d4dbe
commit
53ba9b4eec
4 changed files with 19 additions and 7 deletions
|
|
@ -25,10 +25,11 @@ static bool legacy_crtc_pageflip(struct wlr_drm_backend *drm,
|
|||
return true;
|
||||
}
|
||||
|
||||
static void legacy_conn_enable(struct wlr_drm_backend *drm,
|
||||
static bool legacy_conn_enable(struct wlr_drm_backend *drm,
|
||||
struct wlr_drm_connector *conn, bool enable) {
|
||||
drmModeConnectorSetProperty(drm->fd, conn->id, conn->props.dpms,
|
||||
int ret = drmModeConnectorSetProperty(drm->fd, conn->id, conn->props.dpms,
|
||||
enable ? DRM_MODE_DPMS_ON : DRM_MODE_DPMS_OFF);
|
||||
return ret >= 0;
|
||||
}
|
||||
|
||||
bool legacy_crtc_set_cursor(struct wlr_drm_backend *drm,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue