mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 21:25:58 +01:00
parent
b500e5699b
commit
95abf1220f
1 changed files with 5 additions and 1 deletions
|
@ -2019,7 +2019,11 @@ void CCompositor::swapActiveWorkspaces(CMonitor* pMonitorA, CMonitor* pMonitorB)
|
||||||
updateFullscreenFadeOnWorkspace(PWORKSPACEB);
|
updateFullscreenFadeOnWorkspace(PWORKSPACEB);
|
||||||
updateFullscreenFadeOnWorkspace(PWORKSPACEA);
|
updateFullscreenFadeOnWorkspace(PWORKSPACEA);
|
||||||
|
|
||||||
g_pInputManager->sendMotionEventsToFocused();
|
if (pMonitorA->ID == g_pCompositor->m_pLastMonitor->ID || pMonitorB->ID == g_pCompositor->m_pLastMonitor->ID) {
|
||||||
|
const auto LASTWIN = pMonitorA->ID == g_pCompositor->m_pLastMonitor->ID ? PWORKSPACEB->getLastFocusedWindow() : PWORKSPACEA->getLastFocusedWindow();
|
||||||
|
g_pCompositor->focusWindow(LASTWIN ? LASTWIN :
|
||||||
|
(g_pCompositor->vectorToWindowUnified(g_pInputManager->getMouseCoordsInternal(), RESERVED_EXTENTS | INPUT_EXTENTS | ALLOW_FLOATING)));
|
||||||
|
}
|
||||||
|
|
||||||
// event
|
// event
|
||||||
g_pEventManager->postEvent(SHyprIPCEvent{"moveworkspace", PWORKSPACEA->m_szName + "," + pMonitorB->szName});
|
g_pEventManager->postEvent(SHyprIPCEvent{"moveworkspace", PWORKSPACEA->m_szName + "," + pMonitorB->szName});
|
||||||
|
|
Loading…
Reference in a new issue