| | |
| | | static inline void releaseWindowProxy(const WId windowId) { |
| | | if (auto proxy = g_proxyList->take(windowId)) { |
| | | // TODO: Determine if the window is valid |
| | | |
| | | |
| | | // The window has been destroyed |
| | | // proxy->setSystemTitleBarVisible(true); |
| | | delete proxy; |
| | |
| | | } |
| | | |
| | | case QEvent::MouseButtonDblClick: { |
| | | if (me->button() == Qt::LeftButton && inTitleBar && |
| | | !delegate->isHostSizeFixed(host)) { |
| | | if (me->button() == Qt::LeftButton && inTitleBar && !m_context->isHostSizeFixed()) { |
| | | Qt::WindowFlags windowFlags = delegate->getWindowFlags(host); |
| | | Qt::WindowStates windowState = delegate->getWindowState(host); |
| | | if (!(windowState & Qt::WindowFullScreen)) { |
| | | if ((windowFlags & Qt::WindowMaximizeButtonHint) && |
| | | !(windowState & Qt::WindowFullScreen)) { |
| | | if (windowState & Qt::WindowMaximized) { |
| | | delegate->setWindowState(host, windowState & ~Qt::WindowMaximized); |
| | | } else { |
| | |
| | | const QVariant &oldAttribute) { |
| | | Q_UNUSED(oldAttribute) |
| | | |
| | | Q_ASSERT(m_windowId); |
| | | |
| | | if (key == QStringLiteral("no-system-buttons")) { |
| | | if (attribute.type() != QVariant::Bool) |
| | | return false; |
| | |
| | | } |
| | | return ensureWindowProxy(m_windowId)->setBlurEffect(mode); |
| | | } |
| | | |
| | | return false; |
| | | } |
| | | |