From 506aad5d7de7fa818dd068fead9f32de5df7beef Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 31 Jan 2025 19:16:03 -0500 Subject: Windows: Ignore return value of SetForegroundWindow It turns out that this is flaky for reasons that aren't terribly clear from the documentation. So, just ignore it, it's not the end of the world if raising doesn't happen anyway. --- src/win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/win.c b/src/win.c index c98d51b..8c0e2ff 100644 --- a/src/win.c +++ b/src/win.c @@ -379,7 +379,7 @@ puglShow(PuglView* view, const PuglShowCommand command) break; case PUGL_SHOW_FORCE_RAISE: ShowWindow(impl->hwnd, SW_SHOWNORMAL); - st = puglWinStatus(!!SetForegroundWindow(impl->hwnd)); + SetForegroundWindow(impl->hwnd); break; } -- cgit v1.2.1