Ticket #118: fs.diff
File fs.diff, 1.3 KB (added by , 15 years ago) |
---|
-
src/gui/kernel/qwidget_pm.cpp
1716 1716 QRect r = QApplication::desktop()->screenGeometry(this); 1717 1717 QRect fs(d->frameStrut()); 1718 1718 fs.adjust(-fs.left(), -fs.top(), fs.right(), fs.bottom()); 1719 1720 RECTL rcl; 1721 rcl.xLeft = r.left(); 1722 // flip y coordinate 1723 rcl.yBottom = QApplication::desktop()->height() - (r.top() + r.height()); 1724 rcl.xRight = r.left() + r.width(); 1725 rcl.yTop = rcl.yBottom + r.height(); 1726 WinCalcFrameRect(fId, &rcl, FALSE); 1727 1719 1728 fl |= SWP_ZORDER | SWP_MOVE | SWP_SIZE; 1720 WinSetWindowPos(fId, HWND_TOP, r.left(), 1721 // flip y coodrinate 1722 QApplication::desktop()->height() - (r.top() + r.height()), 1723 r.width(), r.height(), fl); 1729 WinSetWindowPos(fId, HWND_TOP, rcl.xLeft, rcl.yBottom, 1730 rcl.xRight - rcl.xLeft, rcl.yTop - rcl.yBottom, fl); 1724 1731 } else { 1725 1732 // preserve maximized state 1726 1733 if (isVisible()) {