Fix ISSUE#I73IWR
This commit is contained in:
parent
db2cfe312d
commit
6ec81e98fe
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue