close raymenu on focus lost
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user