mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-25 20:29:48 +01:00
more
This commit is contained in:
parent
d3e26652d6
commit
85917a40b0
1 changed files with 12 additions and 4 deletions
|
@ -513,10 +513,10 @@ void CHyprRenderer::renderWorkspaceWindows(CMonitor* pMonitor, PHLWORKSPACE pWor
|
||||||
|
|
||||||
// firstly, render all workspaces in sync, but leave out main workspace
|
// firstly, render all workspaces in sync, but leave out main workspace
|
||||||
for (auto& [k, v] : toRender) {
|
for (auto& [k, v] : toRender) {
|
||||||
if (k == pWorkspace)
|
if (k == pWorkspace || !k)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
const bool SCALE = k && k->m_fScaleClients.value() != 1.F && g_pCompositor->getWindowsOnWorkspace(k->m_iID) > 0;
|
const bool SCALE = k->m_fScaleClients.value() != 1.F && g_pCompositor->getWindowsOnWorkspace(k->m_iID) > 0;
|
||||||
|
|
||||||
if (SCALE)
|
if (SCALE)
|
||||||
preWorkspaceScaleAnim();
|
preWorkspaceScaleAnim();
|
||||||
|
@ -535,9 +535,17 @@ void CHyprRenderer::renderWorkspaceWindows(CMonitor* pMonitor, PHLWORKSPACE pWor
|
||||||
preWorkspaceScaleAnim();
|
preWorkspaceScaleAnim();
|
||||||
|
|
||||||
// lastly, render the current ws
|
// lastly, render the current ws
|
||||||
|
if (toRender.contains(pWorkspace)) {
|
||||||
for (auto& [window, mode] : toRender[pWorkspace]) {
|
for (auto& [window, mode] : toRender[pWorkspace]) {
|
||||||
renderWindow(window, pMonitor, time, true, mode);
|
renderWindow(window, pMonitor, time, true, mode);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
// and the null ws (windows fading out)
|
||||||
|
if (toRender.contains(nullptr)) {
|
||||||
|
for (auto& [window, mode] : toRender[nullptr]) {
|
||||||
|
renderWindow(window, pMonitor, time, true, mode);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (SCALE)
|
if (SCALE)
|
||||||
postWorkspaceScaleAnim(pWorkspace);
|
postWorkspaceScaleAnim(pWorkspace);
|
||||||
|
|
Loading…
Reference in a new issue