renderer: ignore windowRequestedCursorHide

ref #4197, thanks @dtop129

co-authored-by: dtop129
This commit is contained in:
Vaxry 2023-12-29 00:04:01 +01:00
parent 8321d6be46
commit f771c10d1a
3 changed files with 1 additions and 7 deletions

View file

@ -483,11 +483,6 @@ void CInputManager::onMouseButton(wlr_pointer_button_event* e) {
}
void CInputManager::processMouseRequest(wlr_seat_pointer_request_set_cursor_event* e) {
if (!e->surface)
g_pHyprRenderer->m_bWindowRequestedCursorHide = true;
else
g_pHyprRenderer->m_bWindowRequestedCursorHide = false;
if (!cursorImageUnlocked())
return;

View file

@ -2165,7 +2165,7 @@ void CHyprRenderer::setCursorHidden(bool hide) {
}
bool CHyprRenderer::shouldRenderCursor() {
return !m_bCursorHidden && !m_bWindowRequestedCursorHide && m_bCursorHasSurface;
return !m_bCursorHidden && m_bCursorHasSurface;
}
std::tuple<float, float, float> CHyprRenderer::getRenderTimes(CMonitor* pMonitor) {

View file

@ -76,7 +76,6 @@ class CHyprRenderer {
bool beginRender(CMonitor* pMonitor, CRegion& damage, eRenderMode mode = RENDER_MODE_NORMAL, wlr_buffer* buffer = nullptr, CFramebuffer* fb = nullptr);
void endRender();
bool m_bWindowRequestedCursorHide = false;
bool m_bBlockSurfaceFeedback = false;
bool m_bRenderingSnapshot = false;
CWindow* m_pLastScanout = nullptr;