input: don't schedule frame on cursor move on hw cursors

spams unnecessary frames. Maybe we should ignore empty damage frame requests too?

ref #3747 #3490
This commit is contained in:
Vaxry 2024-02-15 01:26:48 +00:00
parent 3cca36e773
commit 770956b092
1 changed files with 2 additions and 1 deletions

View File

@ -315,7 +315,8 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
foundSurface =
g_pCompositor->vectorToLayerSurface(mouseCoords, &PMONITOR->m_aLayerSurfaceLayers[ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND], &surfaceCoords, &pFoundLayerSurface);
g_pCompositor->scheduleFrameForMonitor(g_pCompositor->m_pLastMonitor);
if (g_pCompositor->m_pLastMonitor->output->software_cursor_locks > 0)
g_pCompositor->scheduleFrameForMonitor(g_pCompositor->m_pLastMonitor);
if (!foundSurface) {
if (!m_bEmptyFocusCursorSet) {