diff options
author | Simon Ser <contact@emersion.fr> | 2022-10-17 13:21:19 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-10-17 15:14:02 +0000 |
commit | 0c962c98cc3bc4e1acd3adf83bd527e278b5597b (patch) | |
tree | faf6929688ffd2acb06f205335ecde2d966b9240 /backend/drm | |
parent | 98a83ce14c96f4727791e9a63fd606fdcaa008fc (diff) |
backend/drm: log when restoring mode after VT switch fails
Can make it easier to track down issues.
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/backend.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/drm/backend.c b/backend/drm/backend.c index 46f7f7b8..cee39c9a 100644 --- a/backend/drm/backend.c +++ b/backend/drm/backend.c @@ -120,7 +120,9 @@ static void handle_session_active(struct wl_listener *listener, void *data) { .mode_type = WLR_OUTPUT_STATE_MODE_FIXED, .mode = mode, }; - drm_connector_commit_state(conn, &state); + if (!drm_connector_commit_state(conn, &state)) { + wlr_drm_conn_log(conn, WLR_ERROR, "Failed to restore state after VT switch"); + } } } else { wlr_log(WLR_INFO, "DRM fd paused"); |