]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for Bug GVIEW11205
authorapo <apo@opencascade.com>
Wed, 11 Jan 2006 09:44:42 +0000 (09:44 +0000)
committerapo <apo@opencascade.com>
Wed, 11 Jan 2006 09:44:42 +0000 (09:44 +0000)
  VISU: display object in the 2 window after vertical split is not possible

src/SVTK/SVTK_RenderWindowInteractor.cxx

index 91d7c0c9dc5e3a678848fe76a12f4967dd577589..27bad5b589b653ca8b8a012d6044f5a2a4321e6d 100644 (file)
@@ -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();
 }