From 56ad016516b961773015f70e5fb42b18d06d3fc0 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Mon, 17 Dec 2007 00:43:07 +0000 Subject: [PATCH] defocus layer selector after choosing layer --- src/widgets/layer-selector.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.30.2