From 6efcb65c4b11cf42d5cf20eaedbf5ad1e085be15 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 6 Aug 2024 16:14:57 +0200 Subject: [PATCH] Revert "app: [Windows] don't draw after WM_DESTROY destroyed the window" This reverts commit 635df374952019ff8d274646ea9ce040744daa0f because it didn't fix #603 after all. Signed-off-by: Elias Naur --- app/os_windows.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/os_windows.go b/app/os_windows.go index 5e4a332c..4bd8b291 100644 --- a/app/os_windows.go +++ b/app/os_windows.go @@ -563,7 +563,8 @@ func (w *window) runLoop() { msg := new(windows.Msg) loop: for { - if w.hwnd != 0 && w.animating && !windows.PeekMessage(msg, 0, 0, 0, windows.PM_NOREMOVE) { + anim := w.animating + if anim && !windows.PeekMessage(msg, 0, 0, 0, windows.PM_NOREMOVE) { w.draw(false) continue }