From: apo Date: Wed, 7 Dec 2005 14:47:56 +0000 (+0000) Subject: To implement focus strictly under mouse behaviour X-Git-Tag: TG-D5-38-2003_D2005-29-12~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a4df3f3e363a5473edb985c0f86b28533584b6a6;p=modules%2Fgui.git To implement focus strictly under mouse behaviour --- diff --git a/src/SVTK/SVTK_RenderWindowInteractor.cxx b/src/SVTK/SVTK_RenderWindowInteractor.cxx index ecf0dda1d..aa2a98210 100644 --- a/src/SVTK/SVTK_RenderWindowInteractor.cxx +++ b/src/SVTK/SVTK_RenderWindowInteractor.cxx @@ -312,6 +312,9 @@ void QVTK_RenderWindowInteractor ::enterEvent( QEvent* event ) { + setActiveWindow(); + setFocus(); + GetDevice()->EnterEvent(); }