diff --git a/raymenu/main.go b/raymenu/main.go index 7314983..7785991 100644 --- a/raymenu/main.go +++ b/raymenu/main.go @@ -64,6 +64,11 @@ func raymenu(options []string) (choice string, ok bool) { for !rl.WindowShouldClose() { rl.BeginDrawing() rl.ClearBackground(rl.Black) + + if !rl.IsWindowFocused() { + return "", false + } + resetBounds() bounds := nextBounds()