mirror of https://github.com/liamg/aminal.git
Fix the bug when the application became unresponsible when minimizing (#133)
This commit is contained in:
parent
10a962746f
commit
ab80fcd44e
|
@ -149,6 +149,10 @@ func (gui *GUI) scale() float32 {
|
||||||
// can only be called on OS thread
|
// can only be called on OS thread
|
||||||
func (gui *GUI) resize(w *glfw.Window, width int, height int) {
|
func (gui *GUI) resize(w *glfw.Window, width int, height int) {
|
||||||
|
|
||||||
|
if gui.window.GetAttrib(glfw.Iconified) != 0 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
gui.resizeLock.Lock()
|
gui.resizeLock.Lock()
|
||||||
defer gui.resizeLock.Unlock()
|
defer gui.resizeLock.Unlock()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue