|
|
@ -282,7 +282,7 @@ void wlr_drm_connector_start_renderer(struct wlr_drm_connector *conn) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void wlr_drm_connector_enable(struct wlr_output *output, bool enable) {
|
|
|
|
void wlr_drm_connector_enable(struct wlr_output *output, bool enable) {
|
|
|
|
struct wlr_drm_connector *conn = (struct wlr_drm_connector *)output;
|
|
|
|
struct wlr_drm_connector *conn = (struct wlr_drm_connector *)output;
|
|
|
|
if (conn->state != WLR_DRM_CONN_CONNECTED) {
|
|
|
|
if (conn->state != WLR_DRM_CONN_CONNECTED) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -296,6 +296,8 @@ static void wlr_drm_connector_enable(struct wlr_output *output, bool enable) {
|
|
|
|
|
|
|
|
|
|
|
|
if (enable) {
|
|
|
|
if (enable) {
|
|
|
|
wlr_drm_connector_start_renderer(conn);
|
|
|
|
wlr_drm_connector_start_renderer(conn);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
output->current_mode = NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
wlr_output_update_enabled(&conn->output, enable);
|
|
|
|
wlr_output_update_enabled(&conn->output, enable);
|
|
|
|