Skip to content

Commit 4cd8a01

Browse files
committed
Fix Issue #717: Handling OpenGL dock widget on Linux
1 parent 9a4729e commit 4cd8a01

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/FloatingDockContainer.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,11 @@ CFloatingDockContainer::CFloatingDockContainer(CDockManager *DockManager) :
707707
{
708708
setTitleBarWidget(new QWidget());
709709
setWindowFlags(Qt::Window | Qt::WindowMaximizeButtonHint | Qt::CustomizeWindowHint | Qt::WindowCloseButtonHint);
710+
#ifdef USE_NATIVE_WIDGETS
711+
// Force the new window to be native so OpenGL widgets are well handled
712+
// Unfortunatly setAttribute(Qt::WA_NativeWindow) provokes weird behavior
713+
winId();
714+
#endif
710715
}
711716
else
712717
{

0 commit comments

Comments
 (0)