From 082ab08b9e03f4b6d86df8aea95f4db211bf1344 Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 11 Jan 2006 09:44:42 +0000 Subject: [PATCH] Fix for Bug GVIEW11205 VISU: display object in the 2 window after vertical split is not possible --- src/SVTK/SVTK_RenderWindowInteractor.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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(); } -- 2.39.2