keybinds: fix previous workspace remembering (#12399)
* swipe: Fix previous workspace remembering in workspace gesture Fixes a bug that previous workspace does not exist after swiping to a workspace * tests: Test that `workspace previous` works after workspace gesture * moveActiveToWorkspace: remember previous workspace unconditionally
This commit is contained in:
parent
ebe74be75a
commit
222dbe99d0
3 changed files with 33 additions and 8 deletions
|
|
@ -292,7 +292,7 @@ void CUnifiedWorkspaceSwipeGesture::end() {
|
|||
|
||||
pSwitchedTo = PWORKSPACER;
|
||||
}
|
||||
m_workspaceBegin->rememberPrevWorkspace(pSwitchedTo);
|
||||
pSwitchedTo->rememberPrevWorkspace(m_workspaceBegin);
|
||||
|
||||
g_pHyprRenderer->damageMonitor(m_monitor.lock());
|
||||
|
||||
|
|
@ -311,4 +311,4 @@ void CUnifiedWorkspaceSwipeGesture::end() {
|
|||
for (auto const& ls : Desktop::focusState()->monitor()->m_layerSurfaceLayers[2]) {
|
||||
*ls->m_alpha = pSwitchedTo->m_hasFullscreenWindow && pSwitchedTo->m_fullscreenMode == FSMODE_FULLSCREEN ? 0.f : 1.f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue