Fixed titled config typo and gave option functionality

This commit is contained in:
Chris 2019-10-08 23:02:46 -04:00
parent e2343ebc27
commit 2b226f4413
2 changed files with 4 additions and 3 deletions

View File

@ -15,7 +15,7 @@ func main() {
Title: "Hello, World!", Title: "Hello, World!",
Height: 500, Height: 500,
Width: 500, Width: 500,
Tilted: true, Titled: true,
Resizeable: true, Resizeable: true,
} }

View File

@ -37,7 +37,7 @@ type Config struct {
Resizeable bool Resizeable bool
Borderless bool Borderless bool
Tilted bool Titled bool
Maximizable bool Maximizable bool
} }
@ -64,8 +64,9 @@ func New(cfg *Config, handler http.Handler) *Window {
hint |= 1 hint |= 1
} }
if cfg.Tilted { if !cfg.Titled {
hint |= 2 hint |= 2
w.cfg.Title = ""
} }
if cfg.Maximizable { if cfg.Maximizable {