From 93b56e2966727bd69451b54e8aabcfb65c48e56a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Poizl?= Date: Sun, 3 Jul 2022 13:40:54 +0200 Subject: [PATCH] Workaround for QTBUG-87332 --- mainwindow.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index fdd9504..af0b800 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include #include "loadrunable.h" @@ -208,6 +208,16 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) } m_imageGL->setFocus(); + + // workaround for nasty wayland backend bug https://bugreports.qt.io/browse/QTBUG-87332 + if(static_cast(QCoreApplication::instance())->platformName() == "wayland") + { + infoDock->setFeatures(QDockWidget::DockWidgetClosable | QDockWidget::DockWidgetMovable); + filesystemDock->setFeatures(QDockWidget::DockWidgetClosable | QDockWidget::DockWidgetMovable); + databaseViewDock->setFeatures(QDockWidget::DockWidgetClosable | QDockWidget::DockWidgetMovable); + filetreeDock->setFeatures(QDockWidget::DockWidgetClosable | QDockWidget::DockWidgetMovable); + m_stretchPanel->setFloatable(false); + } } MainWindow::~MainWindow()