From d24f31de514be1c78fcb6a3ad392a01dd7117e3e Mon Sep 17 00:00:00 2001 From: vaxerski Date: Wed, 21 Sep 2022 14:09:26 +0100 Subject: [PATCH] disallow fullscreen pinned --- src/Compositor.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 00862bee5..6972875e8 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1608,6 +1608,11 @@ void CCompositor::setWindowFullscreen(CWindow* pWindow, bool on, eFullscreenMode if (!windowValidMapped(pWindow)) return; + if (pWindow->m_bPinned) { + Debug::log(LOG, "Pinned windows cannot be fullscreen'd"); + return; + } + g_pLayoutManager->getCurrentLayout()->fullscreenRequestForWindow(pWindow, mode, on); g_pXWaylandManager->setWindowFullscreen(pWindow, pWindow->m_bIsFullscreen && mode == FULLSCREEN_FULL);