mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Ref T747, disable "stay on top" if window is send to back
This commit is contained in:
committed by
Mat Sutcliffe
parent
53de0d56b9
commit
2afbdf1228
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user