mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 01:05:59 +01:00
parent
9518cec833
commit
fe23d2b639
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue