Revert "W32: correctly guess max window size from the size of the workarea of the screen it's on"

This is only needed for CSDs. GKT+-2.x has no CSDs, so this
code is completely unnecessary.

This reverts commit d9122d1379.
This commit is contained in:
Руслан Ижбулатов
2015-03-26 17:12:01 +00:00
parent 88f3b248d6
commit 0edc775d1a

View File

@ -3326,27 +3326,8 @@ gdk_event_translate (MSG *msg,
}
else
{
HMONITOR winmon;
MONITORINFO moninfo;
winmon = MonitorFromWindow (GDK_WINDOW_HWND (window), MONITOR_DEFAULTTONEAREST);
moninfo.cbSize = sizeof (moninfo);
if (GetMonitorInfoA (winmon, &moninfo))
{
mmi->ptMaxTrackSize.x = moninfo.rcWork.right - moninfo.rcWork.left;
mmi->ptMaxTrackSize.y = moninfo.rcWork.bottom - moninfo.rcWork.top;
}
else
{
/* Apparently, this is just a very big number (bigger than any widget
* could realistically be) to make sure the window is as big as
* possible when maximized.
*/
mmi->ptMaxTrackSize.x = 30000;
mmi->ptMaxTrackSize.y = 30000;
}
mmi->ptMaxTrackSize.x = 30000;
mmi->ptMaxTrackSize.y = 30000;
}
if (impl->hint_flags & (GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE))