mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 02:45:59 +01:00
events: don't switch to active workspace on workspace rule
This commit is contained in:
parent
1e311c947e
commit
52db216608
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@ void Events::listener_mapWindow(void* owner, void* data) {
|
||||||
if (!workspaceSilent) {
|
if (!workspaceSilent) {
|
||||||
if (pWorkspace->m_bIsSpecialWorkspace)
|
if (pWorkspace->m_bIsSpecialWorkspace)
|
||||||
g_pCompositor->getMonitorFromID(pWorkspace->m_iMonitorID)->setSpecialWorkspace(pWorkspace);
|
g_pCompositor->getMonitorFromID(pWorkspace->m_iMonitorID)->setSpecialWorkspace(pWorkspace);
|
||||||
else
|
else if (PMONITOR->activeWorkspace != REQUESTEDWORKSPACEID)
|
||||||
g_pKeybindManager->m_mDispatchers["workspace"](requestedWorkspaceName);
|
g_pKeybindManager->m_mDispatchers["workspace"](requestedWorkspaceName);
|
||||||
|
|
||||||
PMONITOR = g_pCompositor->m_pLastMonitor;
|
PMONITOR = g_pCompositor->m_pLastMonitor;
|
||||||
|
|
Loading…
Reference in a new issue