Changeset 504 for trunk/src/gui
- Timestamp:
- Feb 3, 2010, 12:06:04 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/qapplication_pm.cpp
r498 r504 1898 1898 // in order to give non-Qt windows the opportunity to see mouse 1899 1899 // messages while our popups are active we need to release the 1900 // mouse capture which is absolute in OS/2. we do it directly1900 // mouse capture which is absolute in OS/2. e do it directly 1901 1901 // (not through releaseAutoCapture()) in order to keep 1902 // autoCaptureWnd nonzero to keep forwarding mouse move events1903 // (actually sent to one of Qt widgets)to the active popup.1902 // autoCaptureWnd nonzero 1903 // to the active popup. 1904 1904 autoCaptureReleased = true; 1905 1905 WinSetCapture(HWND_DESKTOP, 0); … … 1996 1996 if (!w->isActiveWindow()) 1997 1997 w->activateWindow(); 1998 POINTL pt = gpos; 1999 WinMapWindowPoints(HWND_DESKTOP, hwndTarget, &pt, 1); 1998 POINTL ptl = gpos; 2000 1999 // flip y coordinate 2001 pt.y = w->height() - (pt.y + 1); 2000 ptl.y = QApplication::desktop()->height() - (ptl.y + 1); 2001 WinMapWindowPoints(HWND_DESKTOP, hwndTarget, &ptl, 1); 2002 2002 WinPostMsg(hwndTarget, qmsg.msg, 2003 MPFROM2SHORT(pt .x, pt.y), qmsg.mp2);2003 MPFROM2SHORT(pt.y), qmsg.mp2); 2004 2004 } 2005 2005 }
Note:
See TracChangeset
for help on using the changeset viewer.