Fix T76318: lower part of new preferences window does not work
Regression after recent changes. The precise cause is unclear to me, but we do not need to update the size right after creating a new window.
This commit is contained in:
parent
ac6be6759e
commit
d8133b3eb9
Notes:
blender-bot
2023-02-14 09:09:43 +01:00
Referenced by issue #76318, Preferences: Lower left button broken
|
@ -953,7 +953,8 @@ wmWindow *WM_window_open_temp(bContext *C,
|
|||
|
||||
/* make window active, and validate/resize */
|
||||
CTX_wm_window_set(C, win);
|
||||
if (!win->ghostwin) {
|
||||
const bool new_window = (win->ghostwin == NULL);
|
||||
if (new_window) {
|
||||
wm_window_ghostwindow_ensure(wm, win, dialog);
|
||||
}
|
||||
WM_check(C);
|
||||
|
@ -972,7 +973,7 @@ wmWindow *WM_window_open_temp(bContext *C,
|
|||
|
||||
ED_screen_change(C, screen);
|
||||
|
||||
if (win->ghostwin) {
|
||||
if (!new_window) {
|
||||
/* Set size in GHOST window and then update size and position from GHOST,
|
||||
* in case they where changed by GHOST to fit the monitor/screen. */
|
||||
wm_window_set_size(win, win->sizex, win->sizey);
|
||||
|
|
Loading…
Reference in New Issue