[gnome-shell] appSwitcher: Don't create thumbnails for destroyed windows
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] appSwitcher: Don't create thumbnails for destroyed windows
- Date: Wed, 9 Feb 2011 19:54:31 +0000 (UTC)
commit a52ec8f286afd8b620b795cb62f7b9c37e000c7e
Author: Adel Gadllah <adel gadllah gmail com>
Date: Wed Feb 9 20:42:44 2011 +0100
appSwitcher: Don't create thumbnails for destroyed windows
js/ui/altTab.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/altTab.js b/js/ui/altTab.js
index 46c2a09..28d2b91 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]