mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-12-23 02:19:50 +01:00
drm: don't rollback cursors on test
This commit is contained in:
parent
9ccb4411ee
commit
7c3565f9be
1 changed files with 5 additions and 1 deletions
|
@ -1316,7 +1316,11 @@ void Aquamarine::SDRMConnector::applyCommit(const SDRMConnectorCommitData& data)
|
||||||
}
|
}
|
||||||
|
|
||||||
void Aquamarine::SDRMConnector::rollbackCommit(const SDRMConnectorCommitData& data) {
|
void Aquamarine::SDRMConnector::rollbackCommit(const SDRMConnectorCommitData& data) {
|
||||||
// cursors are applied regardless.
|
// cursors are applied regardless,
|
||||||
|
// unless this was a test
|
||||||
|
if (data.test)
|
||||||
|
return;
|
||||||
|
|
||||||
if (crtc->cursor && data.cursorFB)
|
if (crtc->cursor && data.cursorFB)
|
||||||
crtc->cursor->back = data.cursorFB;
|
crtc->cursor->back = data.cursorFB;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue