From b4348c74e4b7dd11576367d88ade462f1cc192fe Mon Sep 17 00:00:00 2001 From: Lampros Pitsillos Date: Fri, 8 Sep 2023 23:02:56 +0300 Subject: [PATCH] More descriptive name --- src/events/Windows.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 20790e13..2b3296bb 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -578,11 +578,11 @@ void Events::listener_mapWindow(void* owner, void* data) { const auto PMONITOR = g_pCompositor->getMonitorFromID(PWINDOW->m_iMonitorID); int maxClients = workspaceRule.maxClients; - bool silent = workspaceRule.maxClientsSilent; + bool maxClientsSilent = workspaceRule.maxClientsSilent; if (maxClients != 0 && maxClients < g_pCompositor->getVisibleWindowsOnWorkspace(pWorkspace->m_iID)) { if (pWorkspace->m_bIsSpecialWorkspace) { g_pCompositor->moveWindowToWorkspaceSafe(PWINDOW, g_pCompositor->getWorkspaceByID(PMONITOR->activeWorkspace)); - if (!silent) + if (!maxClientsSilent) PMONITOR->setSpecialWorkspace(nullptr); } @@ -595,11 +595,11 @@ void Events::listener_mapWindow(void* owner, void* data) { // doesn't exist since it's empty pWorkspace = g_pCompositor->createNewWorkspace(REQUESTEDWORKSPACEID, PWINDOW->m_iMonitorID, requestedWorkspaceName); g_pCompositor->moveWindowToWorkspaceSafe(PWINDOW, pWorkspace); - if (!silent) + if (!maxClientsSilent) g_pKeybindManager->m_mDispatchers["workspace"](pWorkspace->m_szName); } - if (silent) { + if (maxClientsSilent) { if (g_pCompositor->windowValidMapped(PFOCUSEDWINDOWPREV)) { g_pCompositor->focusWindow(PFOCUSEDWINDOWPREV); PFOCUSEDWINDOWPREV->updateWindowDecos();