From fcce346e6787875e6526efea89e74055e447f889 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 8 May 2021 13:42:37 -0400 Subject: Send unmap/map events when the view is minimized/restored X11 Window managers set WM_STATE to notify about minimization, often without sending core X visibility events (which seems odd to me, but that's what Gnome does anyway). So, implement this protocol and send map/unmap events to the view, and adjust the Windows implementation to do the same for consistency across all platforms. --- test/test_show_hide.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_show_hide.c') diff --git a/test/test_show_hide.c b/test/test_show_hide.c index 2294709..b624735 100644 --- a/test/test_show_hide.c +++ b/test/test_show_hide.c @@ -75,7 +75,7 @@ onEvent(PuglView* view, const PuglEvent* event) test->state = EXPOSED; break; case PUGL_UNMAP: - assert(test->state == EXPOSED); + assert(test->state == MAPPED || test->state == EXPOSED); test->state = UNMAPPED; break; case PUGL_DESTROY: -- cgit v1.2.1