mirror of
https://github.com/hyprwm/Hyprland
synced 2026-01-04 11:50:12 +01:00
windows: respect noinitialfocus with workspace changes (#9586)
If a window is specifically placed on another workspace then we should not "focus" that workspace even if the window itself never gets focused when noinitialfocus is enabled for the window.
This commit is contained in:
parent
81e93acba4
commit
4b25fbe5fd
1 changed files with 1 additions and 1 deletions
|
|
@ -349,7 +349,7 @@ void Events::listener_mapWindow(void* owner, void* data) {
|
|||
if (!workspaceSilent) {
|
||||
if (pWorkspace->m_bIsSpecialWorkspace)
|
||||
pWorkspace->m_pMonitor->setSpecialWorkspace(pWorkspace);
|
||||
else if (PMONITOR->activeWorkspaceID() != REQUESTEDWORKSPACEID)
|
||||
else if (PMONITOR->activeWorkspaceID() != REQUESTEDWORKSPACEID && !PWINDOW->m_bNoInitialFocus)
|
||||
g_pKeybindManager->m_mDispatchers["workspace"](requestedWorkspaceName);
|
||||
|
||||
PMONITOR = g_pCompositor->m_pLastMonitor.lock();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue