From a52ec8f286afd8b620b795cb62f7b9c37e000c7e Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Wed, 9 Feb 2011 20:42:44 +0100 Subject: [PATCH] appSwitcher: Don't create thumbnails for destroyed windows --- js/ui/altTab.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/altTab.js b/js/ui/altTab.js index 46c2a09bf..28d2b911f 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -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);