From e2343ebc2755810f8e4569a22e6e0285f54934c7 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 8 Oct 2019 22:15:35 -0400 Subject: [PATCH] Check width in case the window is borderless --- muon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }