flamegraphs: Improve the title page
[libguestfs-talks.git] / 2019-fosdem / nbdview / nbdraid.tcl
index a6dada1..95f0441 100755 (executable)
@@ -37,7 +37,14 @@ source "nbdcanvas.tcl"
 
 set blocksize 4096
 set width 128
-set scale 2
+
+# For 1024x768 and 1280x1024 use scale 1
+# For larger screens use scale 2
+if { [winfo screenheight .] > 1024 } {
+    set scale 2
+} else {
+    set scale 1
+}
 
 # This list is used to store all the RAID handles.
 set handles {}
@@ -111,6 +118,7 @@ for { set i 1 } { $i <= $N } { incr i } {
 }
 
 # Set up the window.
+wm attributes . -topmost 1
 wm title . "nbdraid"
 wm resizable . false false