Add Qt:WindowStaysOnTopHint to resource preview Closes #2971

Qt on Ubuntu 23.04 includes https://github.com/qt/qtbase/commit/f9e4402ffe, which during show() under certain scenarios (for example Qt::ToolTip windows) would destroy and recreate the xcb window.

Adding Qt:WindowStaysOnTopHint to the window flags for ToolTip windows prevents the xcb window from being destroyed and recreated during show().
This commit is contained in:
Jake Turner
2023-07-21 13:19:51 +01:00
parent 117db087a4
commit f56a989e4f
@@ -90,7 +90,7 @@ RDPreviewTooltip::RDPreviewTooltip(PipelineStateViewer *parent, CustomPaintWidge
pipe = parent;
setWindowFlags(Qt::ToolTip);
setWindowFlags(Qt::ToolTip | Qt::WindowStaysOnTopHint);
setAttribute(Qt::WA_TransparentForMouseEvents);
setForegroundRole(QPalette::ToolTipText);
setBackgroundRole(QPalette::ToolTipBase);