renderer: fix null cursor surface sets being ignored

oopsie from #4184
This commit is contained in:
Vaxry 2023-12-18 22:06:50 +00:00
parent 0c74df4f9e
commit 11fd37418c

View File

@ -2031,7 +2031,7 @@ void CHyprRenderer::setCursorSurface(wlr_surface* surf, int hotspotX, int hotspo
m_sLastCursorData.hotspotX = hotspotX;
m_sLastCursorData.hotspotY = hotspotY;
if (shouldRenderCursor())
if (shouldRenderCursor() || !surf)
wlr_cursor_set_surface(g_pCompositor->m_sWLRCursor, surf, hotspotX, hotspotY);
}
void CHyprRenderer::setCursorFromName(const std::string& name) {