close raymenu on focus lost

This commit is contained in:
Ivar Fatland
2026-05-11 10:00:25 +02:00
parent fb3877bca0
commit 26a0dcba4c
+5
View File
@@ -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()