mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 09:29:49 +01:00
renderer: ignore windowRequestedCursorHide
ref #4197, thanks @dtop129 co-authored-by: dtop129
This commit is contained in:
parent
8321d6be46
commit
f771c10d1a
3 changed files with 1 additions and 7 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue