summaryrefslogtreecommitdiff
path: root/src/desktop/Window.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-04-04 22:49:15 +0100
committerVaxry <vaxry@vaxry.net>2024-04-04 22:49:15 +0100
commit1454c6213e53600c6af841f6ec8116ab0e4a7d11 (patch)
tree3e39c466580a447e0a1e41c7c973e63bad0dfb72 /src/desktop/Window.cpp
parentec2cc79c652b11655cc66d5e09b75b3c72e50a1d (diff)
window: fix invalid last workspace id
ref #5432
Diffstat (limited to 'src/desktop/Window.cpp')
-rw-r--r--src/desktop/Window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp
index 34ae857f..ed550655 100644
--- a/src/desktop/Window.cpp
+++ b/src/desktop/Window.cpp
@@ -450,7 +450,7 @@ void CWindow::onUnmap() {
if (g_pCompositor->m_pLastWindow == this)
g_pCompositor->m_pLastWindow = nullptr;
- m_iLastWorkspace = onSpecialWorkspace();
+ m_iLastWorkspace = m_pWorkspace->m_iID;
m_vRealPosition.setCallbackOnEnd(unregisterVar);
m_vRealSize.setCallbackOnEnd(unregisterVar);