From ee4eac75d8afa2f68288e462723a29cab5e52c45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Gro=C3=9F?= Date: Sun, 7 Apr 2024 17:08:06 +0200 Subject: [PATCH] Autofloat on tiling WMs It makes more sense to have blobdrop always floating by default. Otherwise a tiled blobdrop window will look way too large (see demo in #5). Setting the window flag to dialog should usually force a floating window on tiling WMs [0]. [0] https://github.com/rust-windowing/winit/issues/862 --- src/qml/Main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qml/Main.qml b/src/qml/Main.qml index f0f33e0..bcbff9d 100644 --- a/src/qml/Main.qml +++ b/src/qml/Main.qml @@ -7,7 +7,7 @@ import Backend ApplicationWindow { id: root visible: Settings.needsGui - flags: Qt.Window | (Settings.alwaysOnTop ? Qt.WindowStaysOnTopHint : 0) | (Settings.alwaysOnBottom ? Qt.WindowStaysOnBottomHint : 0) | (Settings.frameless ? Qt.FramelessWindowHint : 0) + flags: Qt.Dialog | (Settings.alwaysOnTop ? Qt.WindowStaysOnTopHint : 0) | (Settings.alwaysOnBottom ? Qt.WindowStaysOnBottomHint : 0) | (Settings.frameless ? Qt.FramelessWindowHint : 0) title: Stdin.closed ? "Blobdrop" : "Reading from stdin..." width: 400 height: Math.max(48, Math.min(800, pathView.count ? pathView.contentHeight + 2 * pathView.anchors.topMargin : 350))