pointer: apply locked pointer workaround only on xwayland (#12402)

This commit is contained in:
Hleb Shauchenka 2025-12-04 19:05:50 +01:00 committed by GitHub
parent 43ed0db3b3
commit 17ae3fb704
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -929,7 +929,10 @@ void CPointerManager::attachPointer(SP<IPointer> pointer) {
bool shouldSkip = false;
if (!g_pSeatManager->m_mouse.expired() && g_pInputManager->isLocked()) {
auto PMONITOR = Desktop::focusState()->monitor().get();
shouldSkip = PMONITOR && PMONITOR->shouldSkipScheduleFrameOnMouseEvent();
if (PMONITOR && PMONITOR->shouldSkipScheduleFrameOnMouseEvent()) {
auto fsWindow = PMONITOR->m_activeWorkspace->getFullscreenWindow();
shouldSkip = fsWindow && fsWindow->m_isX11;
}
}
g_pSeatManager->m_isPointerFrameSkipped = shouldSkip;
if (!g_pSeatManager->m_isPointerFrameSkipped)