mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
Send failure code on partial atomic commit
This commit is contained in:
parent
a466c86fba
commit
419400ae00
1 changed files with 1 additions and 2 deletions
|
@ -57,8 +57,7 @@ static bool atomic_commit(int drm_fd, struct atomic *atom,
|
||||||
|
|
||||||
// Try to commit without new changes
|
// Try to commit without new changes
|
||||||
drmModeAtomicSetCursor(atom->req, atom->cursor);
|
drmModeAtomicSetCursor(atom->req, atom->cursor);
|
||||||
ret = drmModeAtomicCommit(drm_fd, atom->req, flags, output);
|
if (drmModeAtomicCommit(drm_fd, atom->req, flags, output)) {
|
||||||
if (ret) {
|
|
||||||
wlr_log_errno(L_ERROR, "%s: Atomic commit failed (%s)",
|
wlr_log_errno(L_ERROR, "%s: Atomic commit failed (%s)",
|
||||||
output->output.name, modeset ? "modeset" : "pageflip");
|
output->output.name, modeset ? "modeset" : "pageflip");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue