diff options
-rw-r--r-- | src/mir_app/src/meta_services.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mir_app/src/meta_services.cpp b/src/mir_app/src/meta_services.cpp index 79d91aacb5..debea67c02 100644 --- a/src/mir_app/src/meta_services.cpp +++ b/src/mir_app/src/meta_services.cpp @@ -554,11 +554,13 @@ static int Meta_MessageWindowEvent(WPARAM, LPARAM lParam) }
}
}
- else if (mwed->uType == MSG_WINDOW_EVT_CLOSING) {
+ else if (mwed->uType == MSG_WINDOW_EVT_CLOSING)
for (auto &p : arMetaWindows)
- if (p->m_hWnd == mwed->hwndWindow)
+ if (p->m_hWnd == mwed->hwndWindow) {
arMetaWindows.remove(p);
- }
+ break;
+ }
+
return 0;
}
|