diff options
Diffstat (limited to 'source/blender/windowmanager/intern/wm.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm.c b/source/blender/windowmanager/intern/wm.c index 0b00d955a8a..56d8788fdcb 100644 --- a/source/blender/windowmanager/intern/wm.c +++ b/source/blender/windowmanager/intern/wm.c @@ -131,8 +131,9 @@ void wm_add_default(bContext *C) CTX_wm_manager_set(C, wm); win= wm_window_new(C); win->screen= screen; - if(screen) - BLI_strncpy(win->screenname, screen->id.name+2, 21); + screen->winid= win->winid; + BLI_strncpy(win->screenname, screen->id.name+2, 21); + wm->winactive= win; wm_window_make_drawable(C, win); } |