From 11fd37418c8520d9e9ac49856502d1f7d67fae08 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 18 Dec 2023 22:06:50 +0000 Subject: [PATCH] renderer: fix null cursor surface sets being ignored oopsie from #4184 --- src/render/Renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 6136ff9d..985ca977 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -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) {