summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-20 19:27:47 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-20 19:27:47 +0100
commit027f29023c5af1e43052fbcb79299a3bd217474c (patch)
treeefba7cfb7dc9fa9853e8746638eff9f504be4b74 /src/managers/KeybindManager.cpp
parent001dfbe3236ce706378fb1b327d17e045bd0f8fc (diff)
fix the last xwayland fix because it didnt fully fix
Diffstat (limited to 'src/managers/KeybindManager.cpp')
-rw-r--r--src/managers/KeybindManager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index 2dedf22c..20fa46d8 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -130,6 +130,10 @@ void CKeybindManager::changeworkspace(std::string args) {
// Workspace doesn't exist, create and switch
const auto PMONITOR = g_pCompositor->getMonitorFromCursor();
+ // we need to move XWayland windows to narnia or otherwise they will still process our cursor and shit
+ // and that'd be annoying as hell
+ g_pCompositor->fixXWaylandWindowsOnWorkspace(PMONITOR->activeWorkspace);
+
g_pCompositor->m_lWorkspaces.push_back(SWorkspace());
const auto PWORKSPACE = &g_pCompositor->m_lWorkspaces.back();