X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6954a1e2c983321297c11050d380485a8f3c724d..fada8bef05c36e3bae29f9442f8d32b024905207:/src/dfb/toplevel.cpp?ds=sidebyside diff --git a/src/dfb/toplevel.cpp b/src/dfb/toplevel.cpp index c8c36de1f1..8963419683 100644 --- a/src/dfb/toplevel.cpp +++ b/src/dfb/toplevel.cpp @@ -19,7 +19,7 @@ #include "wx/dfb/private.h" -#define TRACE_EVENTS _T("events") +#define TRACE_EVENTS "events" // ============================================================================ // wxTopLevelWindowDFB @@ -179,13 +179,13 @@ void wxTopLevelWindowDFB::HandleFocusEvent(const wxDFBWindowEvent& event_) const bool activate = (dfbevent.type == DWET_GOTFOCUS); wxLogTrace(TRACE_EVENTS, - _T("toplevel window %p ('%s') %s focus"), + "toplevel window %p ('%s') %s focus", this, GetName(), - activate ? _T("got") : _T("lost")); + activate ? "got" : "lost"); wxActivateEvent event(wxEVT_ACTIVATE, activate, GetId()); event.SetEventObject(this); - GetEventHandler()->ProcessEvent(event); + HandleWindowEvent(event); // if a frame that doesn't have wx focus inside it just got focus, we // need to set focus to it (or its child): @@ -195,11 +195,13 @@ void wxTopLevelWindowDFB::HandleFocusEvent(const wxDFBWindowEvent& event_) if ( !focused || focused->GetTLW() != this ) { wxLogTrace(TRACE_EVENTS, - _T("setting wx focus to toplevel window %p ('%s')"), + "setting wx focus to toplevel window %p ('%s')", this, GetName()); if ( CanAcceptFocus() ) SetFocus(); + else + wxLogTrace(TRACE_EVENTS, "...which doesn't accept it"); } } }