fix #69,specify preview window parent screen edge

work/spdx
Michail Vourlakos 4 years ago
parent 742987d309
commit 15d384e812

@ -65,7 +65,7 @@ void Dialog::setEdge(const Plasma::Types::Location &edge)
bool Dialog::isRespectingAppletsLayoutGeometry() const bool Dialog::isRespectingAppletsLayoutGeometry() const
{ {
//! As it appears plasma applets popups are defining their popups to Normal window. //! 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 QRect Dialog::appletsLayoutGeometryFromContainment() const

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

Loading…
Cancel
Save