Bug 1491512 - Allow rendering minimized windows on macOS. r=mstange

Differential Revision: https://phabricator.services.mozilla.com/D14567

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Kartikaya Gupta 2018-12-14 20:16:56 +00:00
Родитель a2bda7b56d
Коммит dc7bd74b05
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -3403,7 +3403,8 @@ NSEvent* gLastDragMouseDownEvent = nil;
if (![self window] ||
([[self window] isKindOfClass:[BaseWindow class]] &&
![(BaseWindow*)[self window] isVisibleOrBeingShown])) {
![(BaseWindow*)[self window] isVisibleOrBeingShown] &&
![(BaseWindow*)[self window] isMiniaturized])) {
// Before the window is shown, our GL context's front FBO is not
// framebuffer complete, so we refuse to render.
return false;