Revert #105225: WM Check for lack of active window

This check is no longer needed as Campbell has removed the need to
pass around the active window.  This check could potential be error-
hiding so best removed if not needed.

Pull Request #105351
This commit is contained in:
2023-03-01 21:44:41 +01:00
committed by Harley Acheson
parent 59b9bb0849
commit 7ca63d40dc

View File

@@ -501,14 +501,6 @@ void WM_check(bContext *C)
/* Case: no open windows at all, for old file reads. */
wm_window_ghostwindows_ensure(wm);
/* It possible for a pre-250 file to have window but none set active. See #104726. */
if (wm->winactive == NULL) {
wm->winactive = (wmWindow *)wm->windows.first;
if (wm->winactive != NULL) {
wm->winactive->active = true;
}
}
}
/* Case: file-read. */