Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Y <deadpin>2021-06-28 21:43:45 +0300
committerHarley Acheson <harley.acheson@gmail.com>2021-06-28 21:43:45 +0300
commit643720f8abdb4af63d958300f7af10ca4fbaf4f6 (patch)
tree4ccabec2e620e0b18b2dbc3c8fa6127cc9de1a1f /source/blender/windowmanager/intern/wm_window.c
parentc0fb8375f664235d306bb6f99c0322579887d8e8 (diff)
UI: Do Not Resize Already-Open Temporary Windows
There is no longer a need to resize windows that are _already_ open, since temporary windows can no longer take over the space used by other already-open temporary windows. This primarily affects Preferences and Render windows. see D11721 for more details. Differential Revision: https://developer.blender.org/D11721 Reviewed by Julian Eisel
Diffstat (limited to 'source/blender/windowmanager/intern/wm_window.c')
-rw-r--r--source/blender/windowmanager/intern/wm_window.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index 1c745ba4c79..8f8577e2616 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -827,14 +827,13 @@ wmWindow *WM_window_open(bContext *C,
win = wm_window_new(bmain, wm, toplevel ? NULL : win_prev, dialog);
win->posx = rect.xmin;
win->posy = rect.ymin;
+ win->sizex = BLI_rcti_size_x(&rect);
+ win->sizey = BLI_rcti_size_y(&rect);
*win->stereo3d_format = *win_prev->stereo3d_format;
}
bScreen *screen = WM_window_get_active_screen(win);
- win->sizex = BLI_rcti_size_x(&rect);
- win->sizey = BLI_rcti_size_y(&rect);
-
if (WM_window_get_active_workspace(win) == NULL) {
WorkSpace *workspace = WM_window_get_active_workspace(win_prev);
BKE_workspace_active_set(win->workspace_hook, workspace);