Skip to content

Commit edc9bce

Browse files
committed
Fix Issue #717: Handling OpenGL dock widget on Linux
1 parent f10294f commit edc9bce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/FloatingDockContainer.cpp

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

0 commit comments

Comments
 (0)