mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-25 23:05:58 +01:00
swallow: move swallowed on workspace change
This commit is contained in:
parent
88a96110b7
commit
c2b25f4701
1 changed files with 5 additions and 0 deletions
|
@ -284,6 +284,11 @@ void CWindow::moveToWorkspace(int workspaceID) {
|
|||
EMIT_HOOK_EVENT("moveWindow", (std::vector<void*>{this, PWORKSPACE}));
|
||||
}
|
||||
|
||||
if (m_pSwallowed) {
|
||||
m_pSwallowed->moveToWorkspace(workspaceID);
|
||||
m_pSwallowed->m_iMonitorID = m_iMonitorID;
|
||||
}
|
||||
|
||||
if (PMONITOR)
|
||||
g_pProtocolManager->m_pFractionalScaleProtocolManager->setPreferredScaleForSurface(m_pWLSurface.wlr(), PMONITOR->scale);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue