git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13576
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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)
{
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)
{