From 2b226f44131ccb800be260f95a82bd8db56d9080 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 8 Oct 2019 23:02:46 -0400 Subject: [PATCH 1/2] 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 { From 2912d9a43c06510df6736c7d97841b641f7febe2 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 8 Oct 2019 23:21:49 -0400 Subject: [PATCH 2/2] Fixed small issue --- muon.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/muon.go b/muon.go index 3f20d7e..4f4f06a 100644 --- a/muon.go +++ b/muon.go @@ -64,8 +64,9 @@ func New(cfg *Config, handler http.Handler) *Window { hint |= 1 } - if !cfg.Titled { + if cfg.Titled { hint |= 2 + } else { w.cfg.Title = "" }