don't send mouse events to disabled windows (this really shouldn't be possible as otherwise it allows the user to modify the state of a disabled control)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -497,6 +497,10 @@ pascal OSStatus wxMacTopLevelMouseEventHandler( EventHandlerCallRef handler , Ev
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
// disabled windows must not get any input messages
|
||||
if ( currentMouseWindow && !currentMouseWindow->MacIsReallyEnabled() )
|
||||
currentMouseWindow = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user