diff --git a/muon.go b/muon.go index e5855a3..8460779 100644 --- a/muon.go +++ b/muon.go @@ -329,7 +329,7 @@ func (w *Window) addFunction(name string) { func resizeCallback(ov ULOverlay) func(userData unsafe.Pointer, width uint32, height uint32) { return func(userData unsafe.Pointer, width uint32, height uint32) { - if height > 0 { + if height > 0 && width > 0 { UlOverlayResize(ov, width, height) } }