drm: don't shift state on failed commits

This commit is contained in:
Vaxry 2024-07-04 23:11:18 +02:00
parent 205472bad7
commit 8d1d10397a

View file

@ -1196,7 +1196,7 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) {
bool ok = connector->commitState(data); bool ok = connector->commitState(data);
if (onlyTest) if (onlyTest || !ok)
return ok; return ok;
events.commit.emit(); events.commit.emit();