mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-11-17 00:15:59 +01:00
drm: avoid a crash when no cursor plane is present
This commit is contained in:
parent
35e00a4a9d
commit
af219a0a2c
1 changed files with 1 additions and 1 deletions
|
@ -1437,7 +1437,7 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) {
|
|||
|
||||
if (connector->crtc->pendingCursor)
|
||||
data.cursorFB = connector->crtc->pendingCursor;
|
||||
else
|
||||
else if (connector->crtc->cursor)
|
||||
data.cursorFB = connector->crtc->cursor->front;
|
||||
|
||||
if (data.cursorFB) {
|
||||
|
|
Loading…
Reference in a new issue