~eliasnaur/gio

1

App.Decorated, related issues

Details
Message ID
<CAL+h_7OXxKaoEt+t4eP8sRnEwynYcQQyrB6rc_XzFN53ib0+xg@mail.gmail.com>
DKIM signature
pass
Download raw message
'''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.
Details
Message ID
<CAFcc3FSvy2yUxCJHU7FJyq2RJJkCGzb+-dctgQPFhpfznyKXjg@mail.gmail.com>
In-Reply-To
<CAL+h_7OXxKaoEt+t4eP8sRnEwynYcQQyrB6rc_XzFN53ib0+xg@mail.gmail.com> (view parent)
DKIM signature
pass
Download raw message
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
Reply to thread Export thread (mbox)