aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2025-01-31 19:16:03 -0500
committerDavid Robillard <d@drobilla.net>2025-01-31 19:16:03 -0500
commit506aad5d7de7fa818dd068fead9f32de5df7beef (patch)
treeb9edeb80634df7cbefdfc6667fe03fdd1c5631f7
parent486f945905a7a9aed2bcd9d6c3a0116f36fbc5f6 (diff)
downloadpugl-506aad5d7de7fa818dd068fead9f32de5df7beef.tar.gz
pugl-506aad5d7de7fa818dd068fead9f32de5df7beef.tar.bz2
pugl-506aad5d7de7fa818dd068fead9f32de5df7beef.zip
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.
-rw-r--r--src/win.c2
1 files changed, 1 insertions, 1 deletions
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;
}