sciter-sdk / go-sciter

Golang bindings of Sciter: the Embeddable HTML/CSS/script engine for modern UI development
https://sciter.com
2.57k stars 268 forks source link

window is always on top and stealing focus #291

Open bokunodev opened 3 years ago

bokunodev commented 3 years ago

I just created man.go and compile it using go build command. and the window is always on top and stealing focus. i cant switch to other window/program no matter what i do. maybe related to this https://sciter.com/forums/topic/osx-window-is-always-on-top/#post-70086

package main

import (
    "log"

    "github.com/sciter-sdk/go-sciter"
    "github.com/sciter-sdk/go-sciter/window"
)

func main() {
    win, err := window.New(sciter.DefaultWindowCreateFlag, sciter.DefaultRect)
    if err != nil {
        log.Println(err)
    }

    err = win.LoadFile("index.html")
    if err != nil {
        log.Println(err)
    }

    win.Show()
    win.Run()
}