mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-12-26 03:09:49 +01:00
fix that for laggy pcs
This commit is contained in:
parent
02fbc7f34e
commit
4d7592bf5f
1 changed files with 3 additions and 6 deletions
|
@ -374,16 +374,13 @@ void CWindowManager::refreshDirtyWindows() {
|
|||
|
||||
const auto PWORKSPACE = getWorkspaceByID(window.getWorkspaceID());
|
||||
|
||||
if (!PWORKSPACE)
|
||||
continue;
|
||||
|
||||
// Fullscreen flag
|
||||
bool bHasFullscreenWindow = PWORKSPACE->getHasFullscreenWindow();
|
||||
bool bHasFullscreenWindow = PWORKSPACE ? PWORKSPACE->getHasFullscreenWindow() : false;
|
||||
|
||||
// first and foremost, let's check if the window isn't on a hidden workspace
|
||||
// or an animated workspace
|
||||
if (!isWorkspaceVisible(window.getWorkspaceID())
|
||||
|| PWORKSPACE->getAnimationInProgress()) {
|
||||
if (PWORKSPACE && (!isWorkspaceVisible(window.getWorkspaceID())
|
||||
|| PWORKSPACE->getAnimationInProgress())) {
|
||||
|
||||
const auto MONITOR = getMonitorFromWindow(&window);
|
||||
|
||||
|
|
Loading…
Reference in a new issue