diff --git a/src/windows/menu-main-window.cpp b/src/windows/menu-main-window.cpp index abf5102..c292e6f 100644 --- a/src/windows/menu-main-window.cpp +++ b/src/windows/menu-main-window.cpp @@ -395,7 +395,7 @@ void MenuWindow::init() setColor("transparent"); // setFlags(Qt::FramelessWindowHint); - setFlag(Qt::WindowStaysOnTopHint); + setFlags(Qt::Window | Qt::WindowStaysOnTopHint); WindowHelper::setWindowAttribute(this); WindowHelper::removeHeaderBar(this); WindowHelper::windowBlur(this, true); @@ -429,6 +429,12 @@ void MenuWindow::updateGeometry() return; } + if (m_isFullScreen) { + setMaximumSize(rect.size()); + } else { + setMinimumSize(rect.size()); + } + WindowHelper::setWindowGeometry(this, rect); setMinimumSize(geometry().size()); setMaximumSize(geometry().size()); @@ -486,7 +492,13 @@ void MenuWindow::enableWindowBlur(bool enable) void MenuWindow::exposeEvent(QExposeEvent *event) { if (isExposed()) { - requestActivate(); + if (QX11Info::isPlatformX11()) { + requestActivate(); + } else { + WindowHelper::setWindowAttribute(this); +// WindowHelper::removeHeaderBar(this); + updateGeometry(); + } } QQuickView::exposeEvent(event); }