From 079095beea72fabbde9e54297aad61af07423210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 11 Aug 2016 08:45:41 +0200 Subject: [PATCH] Adding more frameless hints The internal window can be decorated really broke a few things... --- effects/desktopgrid/desktopgrid.cpp | 2 +- effects/presentwindows/presentwindows.cpp | 2 +- scripts/desktopchangeosd/contents/ui/osd.qml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/effects/desktopgrid/desktopgrid.cpp b/effects/desktopgrid/desktopgrid.cpp index df70a8f8e2..498e543de3 100644 --- a/effects/desktopgrid/desktopgrid.cpp +++ b/effects/desktopgrid/desktopgrid.cpp @@ -1376,7 +1376,7 @@ DesktopButtonsView::DesktopButtonsView(QWindow *parent) , m_visible(false) , m_posIsValid(false) { - setFlags(Qt::X11BypassWindowManagerHint); + setFlags(Qt::X11BypassWindowManagerHint | Qt::FramelessWindowHint); setColor(Qt::transparent); rootContext()->setContextProperty(QStringLiteral("add"), QVariant(true)); diff --git a/effects/presentwindows/presentwindows.cpp b/effects/presentwindows/presentwindows.cpp index 030dfadb32..8f192c83a4 100755 --- a/effects/presentwindows/presentwindows.cpp +++ b/effects/presentwindows/presentwindows.cpp @@ -1893,7 +1893,7 @@ CloseWindowView::CloseWindowView(QObject *parent) , m_visible(false) , m_posIsValid(false) { - m_window->setFlags(Qt::X11BypassWindowManagerHint); + m_window->setFlags(Qt::X11BypassWindowManagerHint | Qt::FramelessWindowHint); m_window->setColor(Qt::transparent); m_window->setSource(QUrl(QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("kwin/effects/presentwindows/main.qml")))); diff --git a/scripts/desktopchangeosd/contents/ui/osd.qml b/scripts/desktopchangeosd/contents/ui/osd.qml index e2ff86c5b4..269b29e8b1 100644 --- a/scripts/desktopchangeosd/contents/ui/osd.qml +++ b/scripts/desktopchangeosd/contents/ui/osd.qml @@ -28,7 +28,7 @@ PlasmaCore.Dialog { id: dialog location: PlasmaCore.Types.Floating visible: false - flags: Qt.X11BypassWindowManagerHint + flags: Qt.X11BypassWindowManagerHint | Qt.FramelessWindowHint outputOnly: true mainItem: Item {