- mmi->ptMaxTrackSize.x = org::xwt::plat::Win32::getScreenWidth();
- mmi->ptMaxTrackSize.y = org::xwt::plat::Win32::getScreenHeight();
+ resizable = !((root->minwidth == root->maxwidth) && (root->minheight == root->maxheight));
+ mmi->ptMaxTrackSize.x = resizable ? org::xwt::plat::Win32::getScreenWidth() : mmi->ptMinTrackSize.x;
+ mmi->ptMaxTrackSize.y = resizable ? org::xwt::plat::Win32::getScreenHeight() : mmi->ptMinTrackSize.y;