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() {
|
for !rl.WindowShouldClose() {
|
||||||
rl.BeginDrawing()
|
rl.BeginDrawing()
|
||||||
rl.ClearBackground(rl.Black)
|
rl.ClearBackground(rl.Black)
|
||||||
|
|
||||||
|
if !rl.IsWindowFocused() {
|
||||||
|
return "", false
|
||||||
|
}
|
||||||
|
|
||||||
resetBounds()
|
resetBounds()
|
||||||
bounds := nextBounds()
|
bounds := nextBounds()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user