projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
don't call CreatesMessageOutput() explicitly, it will be created on demand as/if...
[wxWidgets.git]
/
src
/
mac
/
window.cpp
diff --git
a/src/mac/window.cpp
b/src/mac/window.cpp
index 8e269242e89932df36c58145b6bf1062858fd84e..bc83a282a225fd13a57852e4868ffaa9e3e9122b 100644
(file)
--- a/
src/mac/window.cpp
+++ b/
src/mac/window.cpp
@@
-169,6
+169,13
@@
wxWindowMac::~wxWindowMac()
{
s_lastMouseWindow = NULL ;
}
+
+ wxFrame* frame = wxDynamicCast( wxGetTopLevelParent( this ) , wxFrame ) ;
+ if ( frame )
+ {
+ if ( frame->GetLastFocus() == this )
+ frame->SetLastFocus( NULL ) ;
+ }
if ( gFocusWindow == this )
{