wayland:fix view config windows positioning

pull/18/head
Michail Vourlakos 5 years ago
parent c2df25649e
commit 2b7d663950

@ -138,6 +138,11 @@ bool CanvasConfigView::event(QEvent *e)
void CanvasConfigView::showEvent(QShowEvent *ev)
{
if (m_shellSurface) {
//! under wayland it needs to be set again after its hiding
m_shellSurface->setPosition(m_geometryWhenVisible.topLeft());
}
QQuickWindow::showEvent(ev);
if (!m_latteView) {

@ -377,6 +377,11 @@ void PrimaryConfigView::syncGeometry()
void PrimaryConfigView::showEvent(QShowEvent *ev)
{
if (m_shellSurface) {
//! under wayland it needs to be set again after its hiding
m_shellSurface->setPosition(m_geometryWhenVisible.topLeft());
}
QQuickWindow::showEvent(ev);
if (!m_latteView) {

@ -182,6 +182,11 @@ void SecondaryConfigView::syncGeometry()
void SecondaryConfigView::showEvent(QShowEvent *ev)
{
if (m_shellSurface) {
//! under wayland it needs to be set again after its hiding
m_shellSurface->setPosition(m_geometryWhenVisible.topLeft());
}
QQuickWindow::showEvent(ev);
if (!m_latteView) {

@ -61,6 +61,7 @@ SubConfigView::SubConfigView(Latte::View *view, const QString &title, const bool
setIcon(qGuiApp->windowIcon());
if (!m_isNormalWindow) {
setFlags(wFlags());
m_corona->wm()->setViewExtraFlags(this, true, Latte::Types::AlwaysVisible);
}

Loading…
Cancel
Save