renderer: delete now redundant ifdefs (#9651)

Hyprland for now requires aquamarine =>0.8.0 anyway
This commit is contained in:
Honkazel
2025-03-18 06:29:08 +05:00
committed by GitHub
parent 5f60fc7d00
commit 9171db1984

View File

@@ -33,9 +33,7 @@
#include "pass/SurfacePassElement.hpp"
#include "debug/Log.hpp"
#include "../protocols/ColorManagement.hpp"
#if AQUAMARINE_VERSION_NUMBER > 702 // >0.7.2
#include "../protocols/types/ContentType.hpp"
#endif
#include <hyprutils/utils/ScopeGuard.hpp>
using namespace Hyprutils::Utils;
@@ -1495,13 +1493,11 @@ bool CHyprRenderer::commitPendingAndDoExplicitSync(PHLMONITOR pMonitor) {
}
}
#if AQUAMARINE_VERSION_NUMBER > 702 // >0.7.2
if (pMonitor->activeWorkspace && pMonitor->activeWorkspace->m_bHasFullscreenWindow && pMonitor->activeWorkspace->m_efFullscreenMode == FSMODE_FULLSCREEN) {
const auto WINDOW = pMonitor->activeWorkspace->getFullscreenWindow();
pMonitor->output->state->setContentType(NContentType::toDRM(WINDOW->getContentType()));
} else
pMonitor->output->state->setContentType(NContentType::toDRM(CONTENT_TYPE_NONE));
#endif
if (pMonitor->ctmUpdated) {
pMonitor->ctmUpdated = false;