diff options
| author | UjinT34 <41110182+UjinT34@users.noreply.github.com> | 2025-02-02 22:25:29 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-02 20:25:29 +0100 |
| commit | 31431a92714ab7f53c25d2ececb26c5b7264b7e3 (patch) | |
| tree | b5a9ff0e57493b503b09eb9f0e70e96075d70add /src/Compositor.cpp | |
| parent | 70d94fec134c4b91916812901310e7765acf8405 (diff) | |
protocols: Support content-type-v1 proto (#9226)
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 6a241472..0aa0f13d 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -72,6 +72,7 @@ using namespace Hyprutils::String; using namespace Aquamarine; +using enum NContentType::eContentType; static int handleCritSignal(int signo, void* data) { Debug::log(LOG, "Hyprland received signal {}", signo); @@ -2323,7 +2324,7 @@ void CCompositor::setWindowFullscreenState(const PHLWINDOW PWINDOW, SFullscreenS // send a scanout tranche if we are entering fullscreen, and send a regular one if we aren't. // ignore if DS is disabled. - if (*PDIRECTSCANOUT) + if (*PDIRECTSCANOUT == 1 || (*PDIRECTSCANOUT == 2 && PWINDOW->getContentType() == CONTENT_TYPE_GAME)) g_pHyprRenderer->setSurfaceScanoutMode(PWINDOW->m_pWLSurface->resource(), EFFECTIVE_MODE != FSMODE_NONE ? PMONITOR->self.lock() : nullptr); g_pConfigManager->ensureVRR(PMONITOR); |
