]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/app.cpp
correctly render titlebars for TLWs with wxCAPTION but without wxCLOSE_BOX
[wxWidgets.git] / src / x11 / app.cpp
index 2d35f3b63026d7da9a0b128a1178d15d3099de3f..a7165cf5ec4bf93fb828bf008bf770b959a20dfc 100644 (file)
@@ -398,8 +398,8 @@ bool wxApp::ProcessXEvent(WXEvent* _event)
             keyEvent.SetEventType(wxEVT_CHAR);
             // Do the translation again, retaining the ASCII
             // code.
-            wxTranslateKeyEvent(keyEvent, win, window, event, true);
-            if (win->GetEventHandler()->ProcessEvent( keyEvent ))
+            if (wxTranslateKeyEvent(keyEvent, win, window, event, true) &&
+                win->GetEventHandler()->ProcessEvent( keyEvent ))
                 return true;
 
             if ( (keyEvent.m_keyCode == WXK_TAB) &&