mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-25 13:25:57 +01:00
More descriptive name
This commit is contained in:
parent
bd86768c50
commit
b4348c74e4
1 changed files with 4 additions and 4 deletions
|
@ -578,11 +578,11 @@ void Events::listener_mapWindow(void* owner, void* data) {
|
||||||
const auto PMONITOR = g_pCompositor->getMonitorFromID(PWINDOW->m_iMonitorID);
|
const auto PMONITOR = g_pCompositor->getMonitorFromID(PWINDOW->m_iMonitorID);
|
||||||
|
|
||||||
int maxClients = workspaceRule.maxClients;
|
int maxClients = workspaceRule.maxClients;
|
||||||
bool silent = workspaceRule.maxClientsSilent;
|
bool maxClientsSilent = workspaceRule.maxClientsSilent;
|
||||||
if (maxClients != 0 && maxClients < g_pCompositor->getVisibleWindowsOnWorkspace(pWorkspace->m_iID)) {
|
if (maxClients != 0 && maxClients < g_pCompositor->getVisibleWindowsOnWorkspace(pWorkspace->m_iID)) {
|
||||||
if (pWorkspace->m_bIsSpecialWorkspace) {
|
if (pWorkspace->m_bIsSpecialWorkspace) {
|
||||||
g_pCompositor->moveWindowToWorkspaceSafe(PWINDOW, g_pCompositor->getWorkspaceByID(PMONITOR->activeWorkspace));
|
g_pCompositor->moveWindowToWorkspaceSafe(PWINDOW, g_pCompositor->getWorkspaceByID(PMONITOR->activeWorkspace));
|
||||||
if (!silent)
|
if (!maxClientsSilent)
|
||||||
PMONITOR->setSpecialWorkspace(nullptr);
|
PMONITOR->setSpecialWorkspace(nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -595,11 +595,11 @@ void Events::listener_mapWindow(void* owner, void* data) {
|
||||||
// doesn't exist since it's empty
|
// doesn't exist since it's empty
|
||||||
pWorkspace = g_pCompositor->createNewWorkspace(REQUESTEDWORKSPACEID, PWINDOW->m_iMonitorID, requestedWorkspaceName);
|
pWorkspace = g_pCompositor->createNewWorkspace(REQUESTEDWORKSPACEID, PWINDOW->m_iMonitorID, requestedWorkspaceName);
|
||||||
g_pCompositor->moveWindowToWorkspaceSafe(PWINDOW, pWorkspace);
|
g_pCompositor->moveWindowToWorkspaceSafe(PWINDOW, pWorkspace);
|
||||||
if (!silent)
|
if (!maxClientsSilent)
|
||||||
g_pKeybindManager->m_mDispatchers["workspace"](pWorkspace->m_szName);
|
g_pKeybindManager->m_mDispatchers["workspace"](pWorkspace->m_szName);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (silent) {
|
if (maxClientsSilent) {
|
||||||
if (g_pCompositor->windowValidMapped(PFOCUSEDWINDOWPREV)) {
|
if (g_pCompositor->windowValidMapped(PFOCUSEDWINDOWPREV)) {
|
||||||
g_pCompositor->focusWindow(PFOCUSEDWINDOWPREV);
|
g_pCompositor->focusWindow(PFOCUSEDWINDOWPREV);
|
||||||
PFOCUSEDWINDOWPREV->updateWindowDecos();
|
PFOCUSEDWINDOWPREV->updateWindowDecos();
|
||||||
|
|
Loading…
Reference in a new issue