mirror of
https://github.com/fiatjaf/vnak.git
synced 2026-08-09 07:44:58 +00:00
make window float on i3 when -debug flag.
This commit is contained in:
@@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
"context"
|
||||
"encoding/hex"
|
||||
"flag"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -25,13 +26,19 @@ var (
|
||||
debounced = debouncer.New(800 * time.Millisecond)
|
||||
sys = sdk.NewSystem()
|
||||
ctx = context.Background()
|
||||
debug = flag.Bool("debug", false, "enable debug mode")
|
||||
)
|
||||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
app = qt.NewQApplication(os.Args)
|
||||
|
||||
window = qt.NewQMainWindow2()
|
||||
|
||||
if *debug {
|
||||
window.SetWindowFlag(qt.WindowStaysOnTopHint | qt.Dialog)
|
||||
}
|
||||
|
||||
window.SetMinimumSize2(800, 600)
|
||||
window.SetWindowTitle("nakv")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user