From 2b226f44131ccb800be260f95a82bd8db56d9080 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 8 Oct 2019 23:02:46 -0400 Subject: [PATCH] Fixed titled config typo and gave option functionality --- examples/create-react-app/main.go | 2 +- muon.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/create-react-app/main.go b/examples/create-react-app/main.go index d1c6ea7..03b944d 100644 --- a/examples/create-react-app/main.go +++ b/examples/create-react-app/main.go @@ -15,7 +15,7 @@ func main() { Title: "Hello, World!", Height: 500, Width: 500, - Tilted: true, + Titled: true, Resizeable: true, } diff --git a/muon.go b/muon.go index 8460779..3f20d7e 100644 --- a/muon.go +++ b/muon.go @@ -37,7 +37,7 @@ type Config struct { Resizeable bool Borderless bool - Tilted bool + Titled bool Maximizable bool } @@ -64,8 +64,9 @@ func New(cfg *Config, handler http.Handler) *Window { hint |= 1 } - if cfg.Tilted { + if !cfg.Titled { hint |= 2 + w.cfg.Title = "" } if cfg.Maximizable {