mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-22 13:35:57 +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());
|
const auto PWORKSPACE = getWorkspaceByID(window.getWorkspaceID());
|
||||||
|
|
||||||
if (!PWORKSPACE)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
// Fullscreen flag
|
// 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
|
// first and foremost, let's check if the window isn't on a hidden workspace
|
||||||
// or an animated workspace
|
// or an animated workspace
|
||||||
if (!isWorkspaceVisible(window.getWorkspaceID())
|
if (PWORKSPACE && (!isWorkspaceVisible(window.getWorkspaceID())
|
||||||
|| PWORKSPACE->getAnimationInProgress()) {
|
|| PWORKSPACE->getAnimationInProgress())) {
|
||||||
|
|
||||||
const auto MONITOR = getMonitorFromWindow(&window);
|
const auto MONITOR = getMonitorFromWindow(&window);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue