drm: don't report pointer capability when no HW cursor plane is present

ref https://github.com/hyprwm/Hyprland/issues/7364
This commit is contained in:
Vaxry 2024-08-17 19:18:02 +02:00
parent 05f4efca81
commit cd152140fd

View file

@ -835,6 +835,8 @@ bool Aquamarine::CDRMBackend::dispatchEvents() {
} }
uint32_t Aquamarine::CDRMBackend::capabilities() { uint32_t Aquamarine::CDRMBackend::capabilities() {
if (getCursorFormats().empty())
return 0;
return eBackendCapabilities::AQ_BACKEND_CAPABILITY_POINTER; return eBackendCapabilities::AQ_BACKEND_CAPABILITY_POINTER;
} }