mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-12-22 05:49:48 +01:00
drm: guard cursorFB buffer in restoreAfterVT (#100)
This commit is contained in:
parent
e6ea0e0808
commit
8d732fa8af
1 changed files with 1 additions and 1 deletions
|
@ -331,7 +331,7 @@ void Aquamarine::CDRMBackend::restoreAfterVT() {
|
|||
if (c->crtc->pendingCursor)
|
||||
data.cursorFB = c->crtc->pendingCursor;
|
||||
|
||||
if (data.cursorFB && data.cursorFB->buffer->dmabuf().modifier == DRM_FORMAT_MOD_INVALID)
|
||||
if (data.cursorFB && (data.cursorFB->dead || data.cursorFB->buffer->dmabuf().modifier == DRM_FORMAT_MOD_INVALID))
|
||||
data.cursorFB = nullptr;
|
||||
|
||||
backend->log(AQ_LOG_DEBUG,
|
||||
|
|
Loading…
Reference in a new issue