|
@@ -1879,7 +1879,7 @@ LRESULT CALLBACK WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
|
|
WINDOWPLACEMENT placement;
|
|
WINDOWPLACEMENT placement;
|
|
if (GetWindowPlacement(hwnd, &placement) && placement.showCmd == SW_MAXIMIZE) {
|
|
if (GetWindowPlacement(hwnd, &placement) && placement.showCmd == SW_MAXIMIZE) {
|
|
// Maximized borderless windows should use the monitor work area.
|
|
// Maximized borderless windows should use the monitor work area.
|
|
- HMONITOR hMonitor = MonitorFromWindow(hwnd, MONITOR_DEFAULTTONULL);
|
|
|
|
|
|
+ HMONITOR hMonitor = MonitorFromWindow(hwnd, MONITOR_DEFAULTTONEAREST);
|
|
if (hMonitor) {
|
|
if (hMonitor) {
|
|
MONITORINFO info;
|
|
MONITORINFO info;
|
|
SDL_zero(info);
|
|
SDL_zero(info);
|