Merge pull request #19 from puckzxz/master

Fixed titled config typo
This commit is contained in:
V-X 2019-10-08 22:22:49 -05:00 committed by GitHub
commit ebcf7be95c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

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

View File

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