From c63b2bbee9345c9eb456028a5e38cb6d2cd7cef2 Mon Sep 17 00:00:00 2001 From: gustav_b Date: Mon, 12 Nov 2007 22:32:29 +0000 Subject: [PATCH] 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. --- src/widgets/desktop-widget.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 -- 2.30.2