Skip to content

Commit

Permalink
drm: don't shift state on failed commits
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Jul 4, 2024
1 parent 205472b commit 8d1d103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/drm/DRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) {

bool ok = connector->commitState(data);

if (onlyTest)
if (onlyTest || !ok)
return ok;

events.commit.emit();
Expand Down

0 comments on commit 8d1d103

Please sign in to comment.