a bit of fixes to cursor hiding
This commit is contained in:
parent
4d09101e23
commit
f5c2dfc706
3 changed files with 18 additions and 1 deletions
|
|
@ -772,7 +772,8 @@ void CHyprRenderer::ensureCursorRenderingMode() {
|
|||
} else if (*PCURSORTIMEOUT > PASSEDCURSORSECONDS && !m_bHasARenderedCursor) {
|
||||
m_bHasARenderedCursor = true;
|
||||
|
||||
wlr_xcursor_manager_set_cursor_image(g_pCompositor->m_sWLRXCursorMgr, "left_ptr", g_pCompositor->m_sWLRCursor);
|
||||
if (!m_bWindowRequestedCursorHide)
|
||||
wlr_xcursor_manager_set_cursor_image(g_pCompositor->m_sWLRXCursorMgr, "left_ptr", g_pCompositor->m_sWLRCursor);
|
||||
|
||||
Debug::log(LOG, "Showing the cursor (timeout)");
|
||||
|
||||
|
|
@ -782,4 +783,8 @@ void CHyprRenderer::ensureCursorRenderingMode() {
|
|||
} else {
|
||||
m_bHasARenderedCursor = true;
|
||||
}
|
||||
}
|
||||
|
||||
bool CHyprRenderer::shouldRenderCursor() {
|
||||
return m_bHasARenderedCursor;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue