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:
parent
742987d309
commit
15d384e812
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user