diff options
author | David Robillard <d@drobilla.net> | 2025-01-31 19:16:03 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2025-01-31 19:16:03 -0500 |
commit | 506aad5d7de7fa818dd068fead9f32de5df7beef (patch) | |
tree | b9edeb80634df7cbefdfc6667fe03fdd1c5631f7 /src/win.c | |
parent | 486f945905a7a9aed2bcd9d6c3a0116f36fbc5f6 (diff) | |
download | pugl-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.
Diffstat (limited to 'src/win.c')
-rw-r--r-- | src/win.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |