We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
s1hofmann
Learn more about funding links in repositories.
Report abuse
1 parent e2d7a16 commit 6bbe582Copy full SHA for 6bbe582
src/win32/window_manager.cc
@@ -54,6 +54,9 @@ std::string getWindowTitle(const WindowHandle windowHandle) {
54
55
bool focusWindow(const WindowHandle windowHandle) {
56
auto hWnd = reinterpret_cast<HWND>(windowHandle);
57
+ if (GetForegroundWindow() == hWnd) {
58
+ return true;
59
+ }
60
if (IsWindow(hWnd)) {
61
// Restore the window if it's minimized
62
if (IsIconic(hWnd)) {
0 commit comments