You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
[macOS, X11] Fix duplicate close requests.
This commit is contained in:
@@ -4206,7 +4206,10 @@ void DisplayServerX11::popup_close(WindowID p_window) {
|
||||
WindowID win_id = E->get();
|
||||
popup_list.erase(E);
|
||||
|
||||
_send_window_event(windows[win_id], DisplayServerX11::WINDOW_EVENT_CLOSE_REQUEST);
|
||||
if (win_id != p_window) {
|
||||
// Only request close on related windows, not this window. We are already processing it.
|
||||
_send_window_event(windows[win_id], DisplayServerX11::WINDOW_EVENT_CLOSE_REQUEST);
|
||||
}
|
||||
E = F;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user