From: Kevin Ottens Date: Wed, 6 May 2020 13:50:28 +0000 (+0200) Subject: Indicate this is a dialog and not a regular window X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~246^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3b6ab2fa5ae2a2ae75c9eab03a86520b6abf496e;p=nextcloud-desktop.git Indicate this is a dialog and not a regular window 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 --- diff --git a/src/gui/tray/Window.qml b/src/gui/tray/Window.qml index e3f3ed1fc..fe699a225 100644 --- a/src/gui/tray/Window.qml +++ b/src/gui/tray/Window.qml @@ -15,7 +15,7 @@ Window { width: Style.trayWindowWidth height: Style.trayWindowHeight color: "transparent" - flags: Qt.FramelessWindowHint + flags: Qt.Dialog | Qt.FramelessWindowHint // Close tray window when focus is lost (e.g. click somewhere else on the screen) onActiveChanged: {