Skip to content

Commit 47a0025

Browse files
committed
Keep window decorations on Windows
1 parent 6a75650 commit 47a0025

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

main.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package main
22

33
import (
44
"log"
5+
"runtime"
56

67
_ "image/png"
78

@@ -19,7 +20,11 @@ func main() {
1920
ebiten.SetWindowPosition(1920-width, 0)
2021
ebiten.SetWindowTitle("Ivan")
2122
ebiten.SetRunnableOnUnfocused(true)
22-
ebiten.SetWindowDecorated(false)
23+
24+
// Can't move an undecorated window on Windows… Such good UX.
25+
if runtime.GOOS != "windows" {
26+
ebiten.SetWindowDecorated(false)
27+
}
2328

2429
ivan, err := NewApp()
2530
if err != nil {

0 commit comments

Comments
 (0)