From: buliabyak Date: Mon, 17 Dec 2007 00:43:07 +0000 (+0000) Subject: defocus layer selector after choosing layer X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=56ad016516b961773015f70e5fb42b18d06d3fc0;p=inkscape.git defocus layer selector after choosing layer --- diff --git a/src/widgets/layer-selector.cpp b/src/widgets/layer-selector.cpp index 66f4aebf4..b6898b2fe 100644 --- a/src/widgets/layer-selector.cpp +++ b/src/widgets/layer-selector.cpp @@ -299,6 +299,9 @@ void LayerSelector::_setDesktopLayer() { _selectLayer(_desktop->currentLayer()); } + if (_desktop && _desktop->canvas) { + gtk_widget_grab_focus (GTK_WIDGET(_desktop->canvas)); + } } /** Creates rows in the _layer_model data structure for each item