From 419400ae00b8c223eaa4ded9ba93c2f6e9a02dd8 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Sun, 24 Sep 2017 12:09:17 +1300 Subject: [PATCH] Send failure code on partial atomic commit --- backend/drm/drm-atomic.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/drm/drm-atomic.c b/backend/drm/drm-atomic.c index 5d34cd48..16c9c5c3 100644 --- a/backend/drm/drm-atomic.c +++ b/backend/drm/drm-atomic.c @@ -57,8 +57,7 @@ static bool atomic_commit(int drm_fd, struct atomic *atom, // Try to commit without new changes drmModeAtomicSetCursor(atom->req, atom->cursor); - ret = drmModeAtomicCommit(drm_fd, atom->req, flags, output); - if (ret) { + if (drmModeAtomicCommit(drm_fd, atom->req, flags, output)) { wlr_log_errno(L_ERROR, "%s: Atomic commit failed (%s)", output->output.name, modeset ? "modeset" : "pageflip"); }