Skip to content

Commit

Permalink
Autofloat on tiling WMs
Browse files Browse the repository at this point in the history
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] rust-windowing/winit#862
  • Loading branch information
vimpostor committed Apr 7, 2024
1 parent 9dd0aa5 commit ee4eac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qml/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit ee4eac7

Please sign in to comment.