Fix output enable in DRM backend

This commit is contained in:
emersion 2018-01-07 00:28:21 +01:00
parent 8ebd7d4dbe
commit 53ba9b4eec
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
4 changed files with 19 additions and 7 deletions

View file

@ -252,7 +252,10 @@ static void wlr_drm_connector_enable(struct wlr_output *output, bool enable) {
}
struct wlr_drm_backend *drm = (struct wlr_drm_backend *)output->backend;
drm->iface->conn_enable(drm, conn, enable);
bool ok = drm->iface->conn_enable(drm, conn, enable);
if (!ok) {
return;
}
if (enable) {
wlr_drm_connector_start_renderer(conn);