mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-22 22:45:39 +00:00
More window chrome improvements
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
|
||||
|
||||
WindowPtr mssgWindow;
|
||||
WindowPtr mssgWindowExclusiveStack;
|
||||
|
||||
|
||||
//============================================================== Functions
|
||||
@@ -129,6 +130,10 @@ void OpenMessageWindow (const PLPasStr &title)
|
||||
|
||||
surface->SetSystemFont(12, 0);
|
||||
}
|
||||
|
||||
mssgWindowExclusiveStack = mssgWindow;
|
||||
|
||||
wm->SwapExclusiveWindow(mssgWindowExclusiveStack); // Push exclusive window
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------- SetMessageWindowMessage
|
||||
@@ -161,6 +166,11 @@ void SetMessageWindowMessage (StringPtr message, const PortabilityLayer::RGBACol
|
||||
|
||||
void CloseMessageWindow (void)
|
||||
{
|
||||
PortabilityLayer::WindowManager::GetInstance()->SwapExclusiveWindow(mssgWindowExclusiveStack); // Pop exclusive window
|
||||
assert(mssgWindowExclusiveStack == mssgWindow);
|
||||
|
||||
mssgWindowExclusiveStack = nullptr;
|
||||
|
||||
CloseThisWindow(&mssgWindow);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user