Fix ISSUE#I73IWR

This commit is contained in:
sunzhen 2024-01-22 16:07:58 +08:00
parent db2cfe312d
commit 6ec81e98fe
1 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,7 @@
#include <QPoint>
#include <KWindowSystem>
#include <KWindowEffects>
#include <QTimer>
// kysdk
#include <kysdk/applications/windowmanager/windowmanager.h>
@ -496,7 +497,6 @@ void MenuWindow::exposeEvent(QExposeEvent *event)
if (QX11Info::isPlatformX11()) {
requestActivate();
}
WindowHelper::setWindowAttribute(this);
// WindowHelper::removeHeaderBar(this);
updateGeometry();
}
@ -531,6 +531,8 @@ void MenuWindow::showEvent(QShowEvent *event)
//为了主动触发一次updaterequet事件
update();
QQuickView::showEvent(event);
QTimer::singleShot(1,this,[=](){WindowHelper::setWindowAttribute(this);});
}
bool MenuWindow::effectEnabled() const