diff options
author | Scott Anderson <ascent12@hotmail.com> | 2017-09-24 12:09:17 +1300 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2017-09-24 12:09:17 +1300 |
commit | 419400ae00b8c223eaa4ded9ba93c2f6e9a02dd8 (patch) | |
tree | 9aa36ce0e1a69bbcf2de134ea01db89838b212f7 /backend | |
parent | a466c86fba69e491ffbec1cacc440bee30ae9e63 (diff) |
Send failure code on partial atomic commit
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/drm-atomic.c | 3 |
1 files changed, 1 insertions, 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"); } |