pointer: apply locked pointer workaround only on xwayland (#12402)
This commit is contained in:
parent
43ed0db3b3
commit
17ae3fb704
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue