]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/window.cpp
don't leave two conscutive separators after "moving" a standard menu item to the...
[wxWidgets.git] / src / gtk / window.cpp
index 128d508e7126a61ed5372c70e85afd4b9298342d..41a21c2a140222215383a626930294e8710ba9b8 100644 (file)
@@ -2043,11 +2043,11 @@ static gint gtk_window_focus_out_callback( GtkWidget *widget, GdkEventFocus *gdk
         wxFocusEvent event( wxEVT_KILL_FOCUS, win->GetId() );
         event.SetEventObject( win );
 
-        if (win->GetEventHandler()->ProcessEvent( event ))
-        {
-            gtk_signal_emit_stop_by_name( GTK_OBJECT(widget), "focus_out_event" );
-            return TRUE;
-        }
+        // even if we did process the event in wx code, still let GTK itself
+        // process it too as otherwise bad things happen, especially in GTK2
+        // where the text control simply aborts the program if it doesn't get
+        // the matching focus out event
+        (void)win->GetEventHandler()->ProcessEvent( event );
     }
 
     return FALSE;