diff options
-rw-r--r-- | src/tdm_drm_display.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tdm_drm_display.c b/src/tdm_drm_display.c index fc7e93d..dd24960 100644 --- a/src/tdm_drm_display.c +++ b/src/tdm_drm_display.c @@ -215,6 +215,10 @@ _tdm_drm_display_commit_primary_layer(tdm_drm_layer_data *layer_data, TDM_ERR("set crtc failed: %m"); return TDM_ERROR_OPERATION_FAILED; } + output_data->status = TDM_OUTPUT_CONN_STATUS_MODE_SETTED; + if (output_data->status_func) + output_data->status_func(output_data, output_data->status, + output_data->status_user_data); *do_waitvblank = 1; return TDM_ERROR_NONE; } else if (layer_data->display_buffer_changed) { @@ -226,6 +230,10 @@ _tdm_drm_display_commit_primary_layer(tdm_drm_layer_data *layer_data, TDM_ERR("unset crtc failed: %m"); return TDM_ERROR_OPERATION_FAILED; } + output_data->status = TDM_OUTPUT_CONN_STATUS_CONNECTED; + if (output_data->status_func) + output_data->status_func(output_data, output_data->status, + output_data->status_user_data); *do_waitvblank = 1; } else { tdm_drm_event_data *event_data = calloc(1, sizeof(tdm_drm_event_data)); |