mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-10-14 14:05:59 +00:00
keybinds: set special monitor id before recalc
set special workspace's monitor ID before we call recalculateMonitor in toggleSpecialWorkspace. Fixes #1151
This commit is contained in:
@@ -1539,8 +1539,8 @@ void CKeybindManager::toggleSpecialWorkspace(std::string args) {
|
|||||||
POLDMON->specialWorkspaceID = 0;
|
POLDMON->specialWorkspaceID = 0;
|
||||||
g_pLayoutManager->getCurrentLayout()->recalculateMonitor(POLDMON->ID);
|
g_pLayoutManager->getCurrentLayout()->recalculateMonitor(POLDMON->ID);
|
||||||
PMONITOR->specialWorkspaceID = workspaceID;
|
PMONITOR->specialWorkspaceID = workspaceID;
|
||||||
g_pLayoutManager->getCurrentLayout()->recalculateMonitor(PMONITOR->ID);
|
|
||||||
PSPECIALWORKSPACE->m_iMonitorID = PMONITOR->ID;
|
PSPECIALWORKSPACE->m_iMonitorID = PMONITOR->ID;
|
||||||
|
g_pLayoutManager->getCurrentLayout()->recalculateMonitor(PMONITOR->ID);
|
||||||
|
|
||||||
if (const auto PWINDOW = PSPECIALWORKSPACE->getLastFocusedWindow(); PWINDOW)
|
if (const auto PWINDOW = PSPECIALWORKSPACE->getLastFocusedWindow(); PWINDOW)
|
||||||
g_pCompositor->focusWindow(PWINDOW);
|
g_pCompositor->focusWindow(PWINDOW);
|
||||||
|
Reference in New Issue
Block a user