1
0
mirror of https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git synced 2025-04-01 02:42:39 +08:00

Local changes

This commit is contained in:
Jon Jenssen 2023-08-01 16:30:32 +02:00
parent 462015edf1
commit 94c3562511
2 changed files with 7 additions and 1 deletions

1
.gitignore vendored
View File

@ -8,6 +8,7 @@ moc_*
ui_*
Makefile
/out
CMakePresets.json
# IDEs
.idea

View File

@ -702,6 +702,11 @@ CFloatingDockContainer::CFloatingDockContainer(CDockManager *DockManager) :
{
native_window = false;
}
QString WaylandDisplay = qgetenv("WAYLAND_DISPLAY").toLower();
if (WaylandDisplay != "")
{
native_window = false;
}
}
if (native_window)
@ -713,7 +718,7 @@ CFloatingDockContainer::CFloatingDockContainer(CDockManager *DockManager) :
{
d->TitleBar = new CFloatingWidgetTitleBar(this);
setTitleBarWidget(d->TitleBar);
setWindowFlags(Qt::Window | Qt::WindowMinMaxButtonsHint | Qt::FramelessWindowHint);
setWindowFlags(Qt::Window | Qt::WindowMinMaxButtonsHint | Qt::BypassWindowManagerHint);
d->TitleBar->enableCloseButton(isClosable());
connect(d->TitleBar, SIGNAL(closeRequested()), SLOT(close()));
connect(d->TitleBar, &CFloatingWidgetTitleBar::maximizeRequested,