window: verify suppress flags in onUpdateState

ref #6108
This commit is contained in:
Vaxry 2024-05-17 19:54:05 +01:00
parent 9518cec833
commit fe23d2b639

View file

@ -1337,7 +1337,7 @@ void CWindow::onUpdateState() {
if (!m_pXDGSurface) if (!m_pXDGSurface)
return; 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(); bool fs = m_pXDGSurface->toplevel->state.requestsFullscreen.value();
if (fs != m_bIsFullscreen && m_pXDGSurface->mapped) if (fs != m_bIsFullscreen && m_pXDGSurface->mapped)
@ -1347,7 +1347,7 @@ void CWindow::onUpdateState() {
m_bWantsInitialFullscreen = fs; 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(); bool fs = m_pXDGSurface->toplevel->state.requestsMaximize.value();
if (fs != m_bIsFullscreen && m_pXDGSurface->mapped) if (fs != m_bIsFullscreen && m_pXDGSurface->mapped)