Skip to content

Commit 02f17de

Browse files
committed
just comments
1 parent 76ec340 commit 02f17de

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

FlashpointSecurePlayer/WebBrowserMode.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ public bool Fullscreen {
151151
WINDOWPLACEMENT windowPlacement = fullscreenWindowPlacement;
152152

153153
// need to do this first to have an effect if starting maximized
154+
// we use WindowPlacement instead of WindowState to maintain
155+
// the window position and skip the animation
154156
windowPlacement.showCmd = SW.SW_NORMAL;
155157
WindowPlacement = windowPlacement;
156158

@@ -643,6 +645,7 @@ private void WebBrowserMode_Deactivate(object sender, EventArgs e) {
643645
}
644646
}
645647

648+
// we use SW_SHOWMINNOACTIVE so new windows (e.g. Task Manager) don't lose focus
646649
WINDOWPLACEMENT windowPlacement = WindowPlacement;
647650
windowPlacement.showCmd = SW.SW_SHOWMINNOACTIVE;
648651
WindowPlacement = windowPlacement;

0 commit comments

Comments
 (0)