From ab80fcd44e8c2caa2c400d16ce87f79f5a9a9647 Mon Sep 17 00:00:00 2001 From: Max Risuhin Date: Wed, 9 Jan 2019 01:11:06 +0200 Subject: [PATCH] Fix the bug when the application became unresponsible when minimizing (#133) --- gui/gui.go | 4 ++++ 1 file changed, 4 insertions(+) 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()