appSwitcher: Don't create thumbnails for destroyed windows

This commit is contained in:
Adel Gadllah 2011-02-09 20:42:44 +01:00
parent 739399eb2e
commit a52ec8f286

View File

@ -1081,6 +1081,9 @@ ThumbnailList.prototype = {
for (let i = 0; i < this._thumbnailBins.length; i++) {
let mutterWindow = this._windows[i].get_compositor_private();
if (!mutterWindow)
continue;
let windowTexture = mutterWindow.get_texture ();
let [width, height] = windowTexture.get_size();
let scale = Math.min(1.0, THUMBNAIL_DEFAULT_SIZE / width, availHeight / height);