minor changes
This commit is contained in:
parent
aa64af95fe
commit
90bb8e6441
4 changed files with 7 additions and 9 deletions
|
|
@ -43,14 +43,8 @@ bool shouldRenderWindow(CWindow* pWindow, SMonitor* pMonitor) {
|
|||
return true;
|
||||
|
||||
// if not, check if it maybe is active on a different monitor.
|
||||
for (auto& m : g_pCompositor->m_lMonitors) {
|
||||
if (&m == pMonitor)
|
||||
continue;
|
||||
|
||||
|
||||
if (m.activeWorkspace == pWindow->m_iWorkspaceID)
|
||||
return true;
|
||||
}
|
||||
if (g_pCompositor->isWorkspaceVisible(pWindow->m_iWorkspaceID))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue