~eliasnaur/gio

bd7c7a108a9ea67f83e18f79e898b665d7906769 — Elias Naur a month ago 3738aa4
app/internal/window: (Windows) don't send zero-sized draw requests

Signed-off-by: Elias Naur <mail@eliasnaur.com>
1 files changed, 3 insertions(+), 0 deletions(-)

M app/internal/window/os_windows.go
M app/internal/window/os_windows.go => app/internal/window/os_windows.go +3 -0
@@ 332,6 332,9 @@ func (w *window) draw(sync bool) {
	windows.GetClientRect(w.hwnd, &r)
	w.width = int(r.Right - r.Left)
	w.height = int(r.Bottom - r.Top)
	if w.width == 0 || w.height == 0 {
		return
	}
	cfg := configForDC()
	cfg.now = time.Now()
	w.w.Event(FrameEvent{