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:
parent
d11715669d
commit
4f5a32506a
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user