mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 14:40:26 -05:00
Revert "#14714 Add opt-in native window for 3D viewers"
This reverts commit aa3ec82e1c.
This commit is contained in:
1 parent
7b70f7e0a3
commit
c87fff08d6
3 files changed
+1
-14
No files matched your search
@@ -42,7 +42,6 @@ target_link_libraries(
|
||||
LibRender
|
||||
LibGuiQt
|
||||
cafAnimControl
|
||||
cafPdmCore
|
||||
${QT_LIBRARIES}
|
||||
)
|
||||
|
||||
|
||||
@@ -39,7 +39,6 @@
|
||||
#include "cafCadNavigation.h"
|
||||
#include "cafFrameAnimationControl.h"
|
||||
#include "cafNavigationPolicy.h"
|
||||
#include "cafPdmLogging.h"
|
||||
#include "cafPointOfInterestVisualizer.h"
|
||||
|
||||
#include "cvfCamera.h"
|
||||
@@ -143,17 +142,6 @@ caf::Viewer::Viewer( QWidget* parent )
|
||||
setAutoFillBackground( false );
|
||||
setMouseTracking( true );
|
||||
|
||||
// A non-native widget is composited into the top-level backing store, and that composition is not
|
||||
// refreshed when the dock system switches tabs, leaving the shown view black. A native surface
|
||||
// skips compositing, but becomes a subsurface on Wayland, so keep it opt-in.
|
||||
if ( qEnvironmentVariableIntValue( "RESINSIGHT_ENABLE_NATIVE_GL_WIDGET" ) > 0 )
|
||||
{
|
||||
setAttribute( Qt::WA_NativeWindow );
|
||||
|
||||
CAF_PDM_LOG_INFO(
|
||||
QString( "RESINSIGHT_ENABLE_NATIVE_GL_WIDGET is set, using a native window for the 3D viewer" ) );
|
||||
}
|
||||
|
||||
// Needed to get keystrokes
|
||||
setFocusPolicy( Qt::ClickFocus );
|
||||
|
||||
|
||||
Reference in new issue
Block a user