Code

Don't force focus on the canvas when the desktop is given
authorgustav_b <gustav_b@users.sourceforge.net>
Mon, 12 Nov 2007 22:32:29 +0000 (22:32 +0000)
committergustav_b <gustav_b@users.sourceforge.net>
Mon, 12 Nov 2007 22:32:29 +0000 (22:32 +0000)
focus. Instead, focus will be given to the widget in the desktop that
had focus the last time.

src/widgets/desktop-widget.cpp

index fe807fd26b260242ed5bc4aad6e8dc5e513b8450..3562e7b2a8a63307f55c5dc03ef0d62f28e5d124 100644 (file)
@@ -1173,11 +1173,8 @@ sp_desktop_widget_adjustment_value_changed (GtkAdjustment *adj, SPDesktopWidget
 bool SPDesktopWidget::onFocusInEvent(GdkEventFocus*)
 {
     inkscape_activate_desktop (desktop);
-
-    /* give focus to canvas widget */
-    gtk_widget_grab_focus (GTK_WIDGET (canvas));
        
-       return false;
+    return false;
 }
 
 static gdouble