diff --git a/gui/gui.go b/gui/gui.go index 482e134..9debe84 100644 --- a/gui/gui.go +++ b/gui/gui.go @@ -149,6 +149,10 @@ func (gui *GUI) scale() float32 { // can only be called on OS thread func (gui *GUI) resize(w *glfw.Window, width int, height int) { + if gui.window.GetAttrib(glfw.Iconified) != 0 { + return + } + gui.resizeLock.Lock() defer gui.resizeLock.Unlock()