1
0
mirror of https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git synced 2025-03-31 10:22:39 +08:00

Fix Issue #717: Handling OpenGL dock widget on Linux

This commit is contained in:
Thibault GEFFROY 2025-03-12 11:35:04 +01:00
parent f10294fe10
commit edc9bcef69
No known key found for this signature in database
GPG Key ID: 30B5D581E60332E7

View File

@ -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
{