hide from taskbar
This commit is contained in:
parent
c41a4f3761
commit
e6151ac159
@ -145,8 +145,6 @@ void DialogProxy::setVisible(const bool visible)
|
|||||||
setPosition(popupPosition(m_visualParent.data(), Qt::AlignCenter));
|
setPosition(popupPosition(m_visualParent.data(), Qt::AlignCenter));
|
||||||
syncToMainItemSize();
|
syncToMainItemSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
raise();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
KWindowEffects::SlideFromLocation slideLocation = KWindowEffects::NoEdge;
|
KWindowEffects::SlideFromLocation slideLocation = KWindowEffects::NoEdge;
|
||||||
@ -171,6 +169,11 @@ void DialogProxy::setVisible(const bool visible)
|
|||||||
|
|
||||||
KWindowEffects::slideWindow(winId(), slideLocation, -1);
|
KWindowEffects::slideWindow(winId(), slideLocation, -1);
|
||||||
QQuickWindow::setVisible(visible);
|
QQuickWindow::setVisible(visible);
|
||||||
|
|
||||||
|
if (visible) {
|
||||||
|
raise();
|
||||||
|
KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QPoint DialogProxy::popupPosition(QQuickItem *item, Qt::AlignmentFlag alignment)
|
QPoint DialogProxy::popupPosition(QQuickItem *item, Qt::AlignmentFlag alignment)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user