kwin/qml/onscreennotification/plasma/main.qml
Vlad Zahorodnii 4559d30399 Place internal osd windows according to placement policies
Currently, internal on screen display windows have the bypass window
manager hint set. If that hint is set, the osds must place themselves,
but they don't do it.

As far as I know, there is no any reason why internal OSDs have that
flag set.

By removing the Qt::BypassWindowManagerHint flag, we let kwin core
know that it's okay to place internal OSD windows.

BUG: 400675
2020-09-29 14:06:41 +00:00

33 lines
855 B
QML

/*
SPDX-FileCopyrightText: 2016 Martin Graesslin <mgraesslin@kde.org>
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
import QtQuick 2.0;
import QtQuick.Window 2.0;
import org.kde.plasma.core 2.0 as PlasmaCore;
import org.kde.plasma.components 2.0 as Plasma;
import QtQuick.Layouts 1.3;
PlasmaCore.Dialog {
id: dialog
location: PlasmaCore.Types.Floating
visible: osd.visible
flags: Qt.FramelessWindowHint
type: PlasmaCore.Dialog.OnScreenDisplay
outputOnly: true
mainItem: RowLayout {
PlasmaCore.IconItem {
implicitWidth: PlasmaCore.Units.iconSizes["medium"]
implicitHeight: implicitWidth
source: osd.iconName
visible: osd.iconName != ""
}
Plasma.Label {
text: osd.message
}
}
}