Skip to content

Commit

Permalink
Fix the bug when the application became unresponsible when minimizing (
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhora committed Jan 8, 2019
1 parent 10a9627 commit ab80fcd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gui/gui.go
Expand Up @@ -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()

Expand Down

0 comments on commit ab80fcd

Please sign in to comment.