From: gustav_b Date: Mon, 12 Nov 2007 22:32:29 +0000 (+0000) Subject: Don't force focus on the canvas when the desktop is given X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c63b2bbee9345c9eb456028a5e38cb6d2cd7cef2;p=inkscape.git Don't force focus on the canvas when the desktop is given focus. Instead, focus will be given to the widget in the desktop that had focus the last time. --- diff --git a/src/widgets/desktop-widget.cpp b/src/widgets/desktop-widget.cpp index fe807fd26..3562e7b2a 100644 --- a/src/widgets/desktop-widget.cpp +++ b/src/widgets/desktop-widget.cpp @@ -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