break;
case SIZE_RESTORED:
if (m_windowState != Qt::WindowNoState)
- handleWindowStateChange(Qt::WindowNoState);
+ handleWindowStateChange(isFullScreen_sys() ? Qt::WindowFullScreen : Qt::WindowNoState);
handleGeometryChange();
break;
}
return Qt::WindowMinimized;
if (IsZoomed(m_data.hwnd))
return Qt::WindowMaximized;
- if (geometry_sys() == window()->screen()->geometry())
+ if (isFullScreen_sys())
return Qt::WindowFullScreen;
return Qt::WindowNoState;
}
return result;
}
+bool QWindowsWindow::isFullScreen_sys() const
+{
+ return geometry_sys() == window()->screen()->geometry();
+}
+
/*!
\brief Change the window state.
inline QRect frameGeometry_sys() const;
inline QRect geometry_sys() const;
inline WindowData setWindowFlags_sys(Qt::WindowFlags wt, unsigned flags = 0) const;
+ inline bool isFullScreen_sys() const;
inline void setWindowState_sys(Qt::WindowState newState);
inline void setParent_sys(const QPlatformWindow *parent) const;
inline void setMouseGrabEnabled_sys(bool grab);