mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-08 07:05:58 +01:00
renderer: fix incorrect shouldRenderWindow calcs
This commit is contained in:
parent
8dd0c4fe74
commit
e329bc2c7b
1 changed files with 5 additions and 5 deletions
|
@ -71,12 +71,12 @@ bool CHyprRenderer::shouldRenderWindow(CWindow* pWindow, CMonitor* pMonitor, CWo
|
||||||
if (pWindow->m_bPinned)
|
if (pWindow->m_bPinned)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// now check if it has the same workspace
|
const auto PWINDOWWORKSPACE = g_pCompositor->getWorkspaceByID(pWindow->m_iWorkspaceID);
|
||||||
if (pWorkspace && pWorkspace->m_iMonitorID == pMonitor->ID) {
|
if (PWINDOWWORKSPACE && PWINDOWWORKSPACE->m_iMonitorID == pMonitor->ID) {
|
||||||
if (pWorkspace->m_vRenderOffset.isBeingAnimated() || pWorkspace->m_fAlpha.isBeingAnimated() || pWorkspace->m_bForceRendering) {
|
if (PWINDOWWORKSPACE->m_vRenderOffset.isBeingAnimated() || PWINDOWWORKSPACE->m_fAlpha.isBeingAnimated() || PWINDOWWORKSPACE->m_bForceRendering) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
if (!(!pWorkspace->m_bHasFullscreenWindow || pWindow->m_bIsFullscreen || (pWindow->m_bIsFloating && pWindow->m_bCreatedOverFullscreen)))
|
if (!(!PWINDOWWORKSPACE->m_bHasFullscreenWindow || pWindow->m_bIsFullscreen || (pWindow->m_bIsFloating && pWindow->m_bCreatedOverFullscreen)))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1847,4 +1847,4 @@ void CHyprRenderer::initiateManualCrash() {
|
||||||
g_pHyprOpenGL->m_tGlobalTimer.reset();
|
g_pHyprOpenGL->m_tGlobalTimer.reset();
|
||||||
|
|
||||||
g_pConfigManager->setInt("debug:damage_tracking", 0);
|
g_pConfigManager->setInt("debug:damage_tracking", 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue