mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-01 20:46:00 +01:00
fix the last xwayland fix because it didnt fully fix
This commit is contained in:
parent
001dfbe323
commit
027f29023c
1 changed files with 4 additions and 0 deletions
|
@ -130,6 +130,10 @@ void CKeybindManager::changeworkspace(std::string args) {
|
||||||
// Workspace doesn't exist, create and switch
|
// Workspace doesn't exist, create and switch
|
||||||
const auto PMONITOR = g_pCompositor->getMonitorFromCursor();
|
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());
|
g_pCompositor->m_lWorkspaces.push_back(SWorkspace());
|
||||||
const auto PWORKSPACE = &g_pCompositor->m_lWorkspaces.back();
|
const auto PWORKSPACE = &g_pCompositor->m_lWorkspaces.back();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue