Skip to content

Commit a982336

Browse files
authored
Fix windows position in fullscreen (#405)
1 parent 609df9d commit a982336

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

windows/window_manager.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,9 +575,9 @@ void WindowManager::SetFullScreen(const flutter::EncodableMap& args) {
575575
&monitor);
576576
::SetWindowLongPtr(mainWindow, GWL_STYLE, g_style_before_fullscreen & ~WS_OVERLAPPEDWINDOW);
577577
::SetWindowPos(mainWindow, HWND_TOP, monitor.rcMonitor.left,
578-
monitor.rcMonitor.top, monitor.rcMonitor.right,
579-
monitor.rcMonitor.bottom,
580-
SWP_NOOWNERZORDER | SWP_FRAMECHANGED);
578+
monitor.rcMonitor.top, monitor.rcMonitor.right - monitor.rcMonitor.left,
579+
monitor.rcMonitor.bottom - monitor.rcMonitor.top,
580+
SWP_NOOWNERZORDER | SWP_FRAMECHANGED);
581581
}
582582
} else {
583583
if (!g_maximized_before_fullscreen)

0 commit comments

Comments
 (0)