1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-11 13:18:13 +03:00

widgets explorer: initialize windows flags earlier

--this way we avoid in wayland to draw window decoration
This commit is contained in:
Michail Vourlakos 2021-01-16 19:49:32 +02:00
parent 754fb85133
commit 0edbd9a66a
2 changed files with 3 additions and 2 deletions

View File

@ -44,6 +44,8 @@ WidgetExplorerView::WidgetExplorerView(Latte::View *view)
: SubConfigView(view, QString("#widgetexplorerview#"), true)
{
setResizeMode(QQuickView::SizeRootObjectToView);
//!set flags early in order for wayland to initialize properly
setFlags(wFlags());
connect(this, &QQuickView::widthChanged, this, &WidgetExplorerView::updateEffects);
connect(this, &QQuickView::heightChanged, this, &WidgetExplorerView::updateEffects);

View File

@ -530,8 +530,7 @@ void View::showWidgetExplorer(const QPointF &point)
auto widgetExplorerView = m_corona->viewSettingsFactory()->widgetExplorerView(this);
if (!widgetExplorerView->isVisible()) {
// widgetExplorerView->syncSlideEffect();
widgetExplorerView->showAfter(400);
widgetExplorerView->showAfter(250);
}
}