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 <kevin.ottens@nextcloud.com>
This commit is contained in:
Kevin Ottens 2020-05-06 15:50:28 +02:00
parent f47b68b96c
commit 3b6ab2fa5a

View file

@ -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: {