widgets explorer: initialize windows flags earlier

--this way we avoid in wayland to draw window decoration
work/spdx
Michail Vourlakos 4 years ago
parent 754fb85133
commit 0edbd9a66a

@ -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);

@ -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);
}
}

Loading…
Cancel
Save