Priority: P2: Important
Affects Version/s: 5.15.2
Fix Version/s: None
Component/s: Widgets: Main Window
Restoring a floating QDockWidget with QMainWindow::restoreDockWidget() unexpectedly sets the Qt::X11BypassWindowManagerHint flag on the QDockWidget window.
The following example will reproduce the problem. Steps to reproduce:
1. Run the example
2. Click the "Show Dock Widget" button
3. Close the main window (exits the example)
4. Run the example again
5. Click the "Show Dock Widget" button
Expected results: Example prints nothing
Actual results: Example prints "Qt::X11BypassWindowManagerHint was set!"
QTBUG-78293 looks very similar but for QToolBar rather than QDockWidget.