fixed MouseUp handling when window was captured

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2002-01-14 20:56:41 +00:00
parent d11715669d
commit 4f5a32506a
2 changed files with 20 additions and 2 deletions

View File

@ -1270,7 +1270,16 @@ void wxApp::MacHandleMouseUpEvent( WXEVENTREF evr )
EventRecord* ev = (EventRecord*) evr ;
WindowRef window;
short windowPart = ::FindWindow(ev->where, &window);
short windowPart = inNoWindow ;
if ( wxTheApp->s_captureWindow )
{
window = (WindowRef) s_captureWindow->MacGetRootWindow() ;
windowPart = inContent ;
}
else
{
windowPart = ::FindWindow(ev->where, &window) ;
}
switch (windowPart)
{

View File

@ -1270,7 +1270,16 @@ void wxApp::MacHandleMouseUpEvent( WXEVENTREF evr )
EventRecord* ev = (EventRecord*) evr ;
WindowRef window;
short windowPart = ::FindWindow(ev->where, &window);
short windowPart = inNoWindow ;
if ( wxTheApp->s_captureWindow )
{
window = (WindowRef) s_captureWindow->MacGetRootWindow() ;
windowPart = inContent ;
}
else
{
windowPart = ::FindWindow(ev->where, &window) ;
}
switch (windowPart)
{