Fix: UI: Editor window(s) title update when using interactive docking

When using Interactive Docking, window titles are not properly updated.
This change makes sure they get updated in `area_join_modal`.

Pull Request: https://projects.blender.org/blender/blender/pulls/126383
This commit is contained in:
Jonas Holzman
2024-08-24 21:08:05 +02:00
committed by Harley Acheson
parent 409abccadd
commit 13eb41959e

View File

@@ -4221,6 +4221,14 @@ static int area_join_modal(bContext *C, wmOperator *op, const wmEvent *event)
return OPERATOR_CANCELLED;
}
/* Areas changed, update window titles. */
if (jd->win2 && jd->win2 != jd->win1) {
WM_window_title(CTX_wm_manager(C), jd->win2);
}
if (jd->win1 && !jd->close_win) {
WM_window_title(CTX_wm_manager(C), jd->win1);
}
const bool do_close_win = jd->close_win;
wmWindow *close_win = jd->win1;
area_join_exit(C, op);