From edc9bcef69f452fa372f5d96960ab0df230462c6 Mon Sep 17 00:00:00 2001 From: Thibault GEFFROY Date: Wed, 12 Mar 2025 11:35:04 +0100 Subject: [PATCH] Fix Issue #717: Handling OpenGL dock widget on Linux --- src/FloatingDockContainer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/FloatingDockContainer.cpp b/src/FloatingDockContainer.cpp index 81a80fb..4b0eaba 100644 --- a/src/FloatingDockContainer.cpp +++ b/src/FloatingDockContainer.cpp @@ -707,6 +707,9 @@ CFloatingDockContainer::CFloatingDockContainer(CDockManager *DockManager) : { setTitleBarWidget(new QWidget()); setWindowFlags(Qt::Window | Qt::WindowMaximizeButtonHint | Qt::CustomizeWindowHint | Qt::WindowCloseButtonHint); + // Force the new window to be native so OpenGL widgets are well handled + // Unfortunatly setAttribute(Qt::WA_NativeWindow) provokes weird behavior + winId(); } else {