Indicate this is a dialog and not a regular window
authorKevin Ottens <kevin.ottens@nextcloud.com>
Wed, 6 May 2020 13:50:28 +0000 (15:50 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Thu, 7 May 2020 07:39:08 +0000 (09:39 +0200)
This is necessary with some window managers which would otherwise
consider they can reposition and resize the tray window as they wish
(yes, even though the user can't do it directly).

This is for instance the case if you use the tiling mode scripts of
KWin. It automatically ignores dialogs but might force windows to be
fullscreen (which would badly break the layout in our case).

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/gui/tray/Window.qml

index e3f3ed1fc4c4dced4194620808003cd5b92beb63..fe699a2252cdb5db9387524d4768dd09807a083e 100644 (file)
@@ -15,7 +15,7 @@ Window {
     width:      Style.trayWindowWidth\r
     height:     Style.trayWindowHeight\r
     color:      "transparent"\r
-    flags:      Qt.FramelessWindowHint\r
+    flags:      Qt.Dialog | Qt.FramelessWindowHint\r
 \r
     // Close tray window when focus is lost (e.g. click somewhere else on the screen)\r
     onActiveChanged: {\r