From b7c7e9ebd47c4a108d1e12f44332ac15438d2b89 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sun, 22 May 2022 18:38:54 +0300 Subject: [PATCH] wayland workaround:respect popupmargin --- declarativeimports/core/dialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/declarativeimports/core/dialog.cpp b/declarativeimports/core/dialog.cpp index 9f2f80209..2f6bf9a81 100644 --- a/declarativeimports/core/dialog.cpp +++ b/declarativeimports/core/dialog.cpp @@ -52,7 +52,8 @@ 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 || type() == Dialog::Tooltip); + //! Dock type is needed from wayland scenario. In wayland after a while popups from Normal become Dock types + return (type() == Dialog::Normal || type() == Dialog::PopupMenu || type() == Dialog::Tooltip || type() == Dialog::Dock); } QRect Dialog::appletsLayoutGeometryFromContainment() const