mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 14:41:07 +00:00
Merge pull request #84927 from bruvzg/macos_ext_frame_upd
[macOS] Process events before changing title style to update window frame.
This commit is contained in:
commit
b049ac43ba
1 changed files with 1 additions and 0 deletions
|
|
@ -8097,6 +8097,7 @@ EditorNode::EditorNode() {
|
||||||
|
|
||||||
// Extend menu bar to window title.
|
// Extend menu bar to window title.
|
||||||
if (can_expand) {
|
if (can_expand) {
|
||||||
|
DisplayServer::get_singleton()->process_events();
|
||||||
DisplayServer::get_singleton()->window_set_flag(DisplayServer::WINDOW_FLAG_EXTEND_TO_TITLE, true, DisplayServer::MAIN_WINDOW_ID);
|
DisplayServer::get_singleton()->window_set_flag(DisplayServer::WINDOW_FLAG_EXTEND_TO_TITLE, true, DisplayServer::MAIN_WINDOW_ID);
|
||||||
title_bar->set_can_move_window(true);
|
title_bar->set_can_move_window(true);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue