Skip to content

Commit

Permalink
Fix windows position in fullscreen (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienDev authored Oct 8, 2023
1 parent 609df9d commit a982336
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions windows/window_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,9 @@ void WindowManager::SetFullScreen(const flutter::EncodableMap& args) {
&monitor);
::SetWindowLongPtr(mainWindow, GWL_STYLE, g_style_before_fullscreen & ~WS_OVERLAPPEDWINDOW);
::SetWindowPos(mainWindow, HWND_TOP, monitor.rcMonitor.left,
monitor.rcMonitor.top, monitor.rcMonitor.right,
monitor.rcMonitor.bottom,
SWP_NOOWNERZORDER | SWP_FRAMECHANGED);
monitor.rcMonitor.top, monitor.rcMonitor.right - monitor.rcMonitor.left,
monitor.rcMonitor.bottom - monitor.rcMonitor.top,
SWP_NOOWNERZORDER | SWP_FRAMECHANGED);
}
} else {
if (!g_maximized_before_fullscreen)
Expand Down

0 comments on commit a982336

Please sign in to comment.