diff options
| author | memchr <118117622+memchr@users.noreply.github.com> | 2023-09-11 22:39:24 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-11 23:39:24 +0100 |
| commit | bc41d7ec8515723d79cc921454a739d65db69467 (patch) | |
| tree | e5b69d17a2ce8f52faae1dafc4817d3e85a3ca53 /src/Compositor.cpp | |
| parent | df51c45d7f9e4e280b959f790f7cde6c88b9b451 (diff) | |
fix: inconsistent behaviour where last workspace was not saved (#3261)
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 7cdaf54b..e1fb60cb 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -877,6 +877,7 @@ void CCompositor::focusWindow(CWindow* pWindow, wlr_surface* pSurface) { // This is to fix incorrect feedback on the focus history. const auto PWORKSPACE = getWorkspaceByID(pWindow->m_iWorkspaceID); PWORKSPACE->m_pLastFocusedWindow = pWindow; + PWORKSPACE->rememberPrevWorkspace(getWorkspaceByID(m_pLastMonitor->activeWorkspace)); const auto PMONITOR = getMonitorFromID(PWORKSPACE->m_iMonitorID); PMONITOR->changeWorkspace(PWORKSPACE, false, true); // changeworkspace already calls focusWindow |
