Skip to content

Commit 1d63872

Browse files
Fixes foregrounding of OBS when launched from browser.
1 parent 2084a83 commit 1d63872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

loader/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ BOOL CALLBACK WindowToForeground(HWND hwnd, LPARAM lParam) {
7878
// Bring the window to the foreground
7979
if (title.rfind(L"OBS ", 0) == 0) { // the main OBS window title starts with 'OBS '
8080
SetForegroundWindow(hwnd);
81-
ShowWindow(hwnd, SW_RESTORE);
81+
ShowWindow(hwnd, SW_SHOW);
8282
return FALSE; // Stop enumerating windows (we found the window)
8383
}
8484
}

0 commit comments

Comments
 (0)