From d5bda0b2bd423482e11c21e3b1a48cc409c11d74 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 2 Mar 2011 21:16:30 +0000 Subject: [PATCH 1/1] the wx part knows better whether it has the focus (may be the embedded NSView, not the m_peer) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/window_osx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/window_osx.cpp b/src/osx/window_osx.cpp index a7f6a93160..5e8dc24763 100644 --- a/src/osx/window_osx.cpp +++ b/src/osx/window_osx.cpp @@ -1482,7 +1482,7 @@ void wxWindowMac::MacPaintBorders( int WXUNUSED(leftOrigin) , int WXUNUSED(right if ( IsTopLevel() ) return ; - bool hasFocus = m_peer->NeedsFocusRect() && m_peer->HasFocus() ; + bool hasFocus = m_peer->NeedsFocusRect() && HasFocus(); // back to the surrounding frame rectangle int tx,ty,tw,th; -- 2.45.2