From: apo Date: Wed, 11 Jan 2006 09:44:42 +0000 (+0000) Subject: Fix for Bug GVIEW11205 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=082ab08b9e03f4b6d86df8aea95f4db211bf1344;p=modules%2Fgui.git Fix for Bug GVIEW11205 VISU: display object in the 2 window after vertical split is not possible --- diff --git a/src/SVTK/SVTK_RenderWindowInteractor.cxx b/src/SVTK/SVTK_RenderWindowInteractor.cxx index 91d7c0c9d..27bad5b58 100644 --- a/src/SVTK/SVTK_RenderWindowInteractor.cxx +++ b/src/SVTK/SVTK_RenderWindowInteractor.cxx @@ -58,6 +58,7 @@ using namespace std; static bool GENERATE_SUIT_EVENTS = false; +static bool FOCUS_UNDER_MOUSE = false; //---------------------------------------------------------------------------- @@ -297,9 +298,10 @@ void QVTK_RenderWindowInteractor ::enterEvent( QEvent* event ) { - setActiveWindow(); - setFocus(); - + if(FOCUS_UNDER_MOUSE){ + setActiveWindow(); + setFocus(); + } GetDevice()->EnterEvent(); }