input: Ignore some input events when focus is on a layer surface (#4306)
* No motion events with focus on LS on workspace change * Don't check scroll events on decorations with focus on LS
This commit is contained in:
parent
46997a7643
commit
7c1ac58a4b
2 changed files with 12 additions and 8 deletions
|
|
@ -880,10 +880,12 @@ void CKeybindManager::changeworkspace(std::string args) {
|
|||
} else
|
||||
pWorkspaceToChangeTo->rememberPrevWorkspace(PCURRENTWORKSPACE);
|
||||
|
||||
if (!g_pCompositor->m_pLastFocus)
|
||||
g_pInputManager->simulateMouseMovement();
|
||||
else
|
||||
g_pInputManager->sendMotionEventsToFocused();
|
||||
if (!g_pInputManager->m_bLastFocusOnLS) {
|
||||
if (g_pCompositor->m_pLastFocus)
|
||||
g_pInputManager->sendMotionEventsToFocused();
|
||||
else
|
||||
g_pInputManager->simulateMouseMovement();
|
||||
}
|
||||
}
|
||||
|
||||
void CKeybindManager::fullscreenActive(std::string args) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue