mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-11-17 02:35:59 +01:00
drm: avoid crash on nullptr cursors
This commit is contained in:
parent
7bbdf32fb8
commit
13cf43497e
1 changed files with 1 additions and 1 deletions
|
@ -1444,7 +1444,7 @@ SP<IBackendImplementation> Aquamarine::CDRMOutput::getBackend() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Aquamarine::CDRMOutput::setCursor(SP<IBuffer> buffer, const Vector2D& hotspot) {
|
bool Aquamarine::CDRMOutput::setCursor(SP<IBuffer> buffer, const Vector2D& hotspot) {
|
||||||
if (!buffer->dmabuf().success) {
|
if (buffer && !buffer->dmabuf().success) {
|
||||||
backend->backend->log(AQ_LOG_ERROR, "drm: Cursor buffer has to be a dmabuf");
|
backend->backend->log(AQ_LOG_ERROR, "drm: Cursor buffer has to be a dmabuf");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue