1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-09 00:58:15 +03:00

fix #69,specify preview window parent screen edge

This commit is contained in:
Michail Vourlakos 2021-05-09 19:27:42 +03:00
parent 742987d309
commit 15d384e812
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ void Dialog::setEdge(const Plasma::Types::Location &edge)
bool Dialog::isRespectingAppletsLayoutGeometry() const
{
//! As it appears plasma applets popups are defining their popups to Normal window.
return (type() == Dialog::Normal || type() == Dialog::PopupMenu);
return (type() == Dialog::Normal || type() == Dialog::PopupMenu || type() == Dialog::Tooltip);
}
QRect Dialog::appletsLayoutGeometryFromContainment() const

View File

@ -341,8 +341,8 @@ Item {
type: plasmoid.configuration.previewWindowAsPopup ? PlasmaCore.Dialog.PopupMenu : PlasmaCore.Dialog.Tooltip
flags: plasmoid.configuration.previewWindowAsPopup ? Qt.WindowStaysOnTopHint | Qt.WindowDoesNotAcceptFocus | Qt.Popup :
Qt.WindowStaysOnTopHint | Qt.WindowDoesNotAcceptFocus | Qt.ToolTip
location: root.location
edge: root.location
mainItem: toolTipDelegate
visible: false