From fe23d2b639f13db852adb5f10812f308b38d7e9b Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 17 May 2024 19:54:05 +0100 Subject: [PATCH] window: verify suppress flags in onUpdateState ref #6108 --- src/desktop/Window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp index c11a714b..56003eca 100644 --- a/src/desktop/Window.cpp +++ b/src/desktop/Window.cpp @@ -1337,7 +1337,7 @@ void CWindow::onUpdateState() { if (!m_pXDGSurface) return; - if (m_pXDGSurface->toplevel->state.requestsFullscreen) { + if (m_pXDGSurface->toplevel->state.requestsFullscreen && !(m_eSuppressedEvents & SUPPRESS_FULLSCREEN)) { bool fs = m_pXDGSurface->toplevel->state.requestsFullscreen.value(); if (fs != m_bIsFullscreen && m_pXDGSurface->mapped) @@ -1347,7 +1347,7 @@ void CWindow::onUpdateState() { m_bWantsInitialFullscreen = fs; } - if (m_pXDGSurface->toplevel->state.requestsMaximize) { + if (m_pXDGSurface->toplevel->state.requestsMaximize && !(m_eSuppressedEvents & SUPPRESS_MAXIMIZE)) { bool fs = m_pXDGSurface->toplevel->state.requestsMaximize.value(); if (fs != m_bIsFullscreen && m_pXDGSurface->mapped)