ui: run in background
This commit is contained in:
@@ -26,6 +26,8 @@ type Window struct {
|
|||||||
//
|
//
|
||||||
// ebiten assumes a single window, so only call this once...
|
// ebiten assumes a single window, so only call this once...
|
||||||
func NewWindow(title string) (*Window, error) {
|
func NewWindow(title string) (*Window, error) {
|
||||||
|
ebiten.SetRunnableInBackground(true)
|
||||||
|
|
||||||
return &Window{
|
return &Window{
|
||||||
Title: title,
|
Title: title,
|
||||||
KeyUpHandlers: make(map[ebiten.Key]func()),
|
KeyUpHandlers: make(map[ebiten.Key]func()),
|
||||||
|
Reference in New Issue
Block a user