mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 00:03:11 +01:00
Merge pull request #9362 from Broxzier/bugfix/9360-window-freeze
Fix #9360: sticky windows can be closed
This commit is contained in:
@@ -363,12 +363,14 @@ void window_close_all()
|
|||||||
{
|
{
|
||||||
window_close_by_class(WC_DROPDOWN);
|
window_close_by_class(WC_DROPDOWN);
|
||||||
|
|
||||||
auto it = g_window_list.begin();
|
for (auto it = g_window_list.begin(); it != g_window_list.end();)
|
||||||
while (it != g_window_list.end())
|
|
||||||
{
|
{
|
||||||
auto itNext = std::next(it);
|
auto itNext = std::next(it);
|
||||||
auto w = it->get();
|
auto w = it->get();
|
||||||
window_close(w);
|
if (!(w->flags & (WF_STICK_TO_BACK | WF_STICK_TO_FRONT)))
|
||||||
|
{
|
||||||
|
window_close(w);
|
||||||
|
}
|
||||||
it = itNext;
|
it = itNext;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user