Ref T747, disable "stay on top" if window is send to back

This commit is contained in:
Klaus Basan
2019-11-01 21:49:53 +01:00
committed by Mat Sutcliffe
parent 53de0d56b9
commit 2afbdf1228

View File

@@ -1188,7 +1188,9 @@ namespace BlackGui
if (this->isShuttingDown()) { return; }
m_frontBack = false;
QMainWindow *w = this->mainApplicationWindow();
if (!w) { return; }
if (!w) { return; }
if (CGuiUtility::staysOnTop(w)) { CGuiUtility::stayOnTop(false, w); }
w->lower();
}
@@ -1197,8 +1199,10 @@ namespace BlackGui
if (this->isShuttingDown()) { return; }
QMainWindow *w = sGui->mainApplicationWindow();
if (!w) { return; }
if (w->isMinimized()) { this->windowToFront(); return; }
if (w->isMaximized()) { this->windowToBack(); return; }
if (w->isMinimized()) { this->windowToFront(); return; }
if (w->isMaximized()) { this->windowToBack(); return; }
if (CGuiUtility::staysOnTop(w)) { this->windowToBack(); return; }
if (m_frontBack)
{
this->windowToBack();