mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-05 06:31:57 -07:00
renderer: use optional for cursor surface storing
because nullptr is a valid surface. fixes #3692
This commit is contained in:
@@ -1956,7 +1956,7 @@ void CHyprRenderer::setCursorFromName(const std::string& name) {
|
||||
return;
|
||||
|
||||
m_sLastCursorData.name = name;
|
||||
m_sLastCursorData.surf = nullptr;
|
||||
m_sLastCursorData.surf.reset();
|
||||
|
||||
wlr_cursor_set_xcursor(g_pCompositor->m_sWLRCursor, g_pCompositor->m_sWLRXCursorMgr, name.c_str());
|
||||
}
|
||||
|
Reference in New Issue
Block a user