'''func main() {
go func() {
w := new(app.Window)
w.Option(app.Size(unit.Dp(800), unit.Dp(600)),
app.Decorated(false))
if err := loop(w); err != nil {
panic(err)
}
os.Exit(0)
}()
app.Main()
}
'''
system: ubuntu 22.04
gio v 0.7.1
Hello, I would like to ask a question, that is, app.Decorated(false)
has been set to flase, but the default border and title bar of the gio
program's window still exist. Can you tell me the reason? Thank you.
On Fri, Aug 9, 2024 at 12:53 AM zi nan <kainan20021110@gmail.com> wrote:
>
> '''func main() {
> go func() {
> w := new(app.Window)
> w.Option(app.Size(unit.Dp(800), unit.Dp(600)),
> app.Decorated(false))
> if err := loop(w); err != nil {
> panic(err)
> }
> os.Exit(0)
> }()
> app.Main()
> }
> '''
> system: ubuntu 22.04
> gio v 0.7.1
> Hello, I would like to ask a question, that is, app.Decorated(false)
> has been set to flase, but the default border and title bar of the gio
> program's window still exist. Can you tell me the reason? Thank you.
Gio can't disable the system decorations in all environments. I think
you're probably on X11, and I don't think it's supported there. You
can determine whether the decorations are enabled by looking at the
first `app.ConfigEvent` you received.
Cheers,
Chris