From 51e066ade1bbd2f6ad9145abe466bc914789f5ba Mon Sep 17 00:00:00 2001 From: Nick Thomas Date: Sun, 29 Dec 2019 19:41:20 +0000 Subject: [PATCH] ui: run in background --- internal/ui/window.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/ui/window.go b/internal/ui/window.go index c6e3ea2..397f09b 100644 --- a/internal/ui/window.go +++ b/internal/ui/window.go @@ -26,6 +26,8 @@ type Window struct { // // ebiten assumes a single window, so only call this once... func NewWindow(title string) (*Window, error) { + ebiten.SetRunnableInBackground(true) + return &Window{ Title: title, KeyUpHandlers: make(map[ebiten.Key]func()),