Fix indicator overlay z-order when using Flag_KeepAboveIfNotUtilityWindow

The overlay window needs to be on top

Fixes #181
This commit is contained in:
Sergio Martins
2021-03-15 18:23:00 +00:00
parent 581139d099
commit 6f889d1c3b

View File

@@ -129,6 +129,12 @@ IndicatorWindow::IndicatorWindow(ClassicIndicators *classicIndicators_)
, m_outterTop(new Indicator(classicIndicators, this, DropIndicatorOverlayInterface::DropLocation_OutterTop))
{
setWindowFlag(Qt::FramelessWindowHint, true);
if (Config::self().flags() & Config::Flag_KeepAboveIfNotUtilityWindow) {
// Ensure the overlay window is on top
setWindowFlag(Qt::WindowStaysOnTopHint, true);
}
setAttribute(Qt::WA_TranslucentBackground);
connect(classicIndicators, &ClassicIndicators::innerIndicatorsVisibleChanged,