Code

defocus layer selector after choosing layer
authorbuliabyak <buliabyak@users.sourceforge.net>
Mon, 17 Dec 2007 00:43:07 +0000 (00:43 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Mon, 17 Dec 2007 00:43:07 +0000 (00:43 +0000)
src/widgets/layer-selector.cpp

index 66f4aebf4e77fd822908a38f6e0e8e3dd37ec5dd..b6898b2feb0391910d46bd3ae0d7ecc58f7cb0cf 100644 (file)
@@ -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