[gnome-shell-extensions/wip/window-list: 10/13] icon-geometry: Guard against older mutter versions
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions/wip/window-list: 10/13] icon-geometry: Guard against older mutter versions
- Date: Fri, 25 Jan 2013 02:14:53 +0000 (UTC)
commit a17e3828e6fabf92ef454871bd189403b079b62f
Author: Florian MÃllner <fmuellner gnome org>
Date: Wed Jan 23 21:33:49 2013 +0100
icon-geometry: Guard against older mutter versions
extensions/window-list/extension.js | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js
index 9ffd817..d16c8db 100644
--- a/extensions/window-list/extension.js
+++ b/extensions/window-list/extension.js
@@ -88,6 +88,9 @@ const WindowButton = new Lang.Class({
},
_updateIconGeometry: function() {
+ if (!this.metaWindow.set_icon_geometry)
+ return;
+
let [x, y] = this.actor.get_transformed_position();
let [w, h] = this.actor.get_transformed_size();
@@ -301,6 +304,9 @@ const WindowList = new Lang.Class({
let windows = Meta.get_window_actors(global.screen);
for (let i = 0; i < windows.length; i++) {
+ if (!windows[i].metaWindow.set_icon_geometry)
+ return;
+
windows[i].metaWindow.set_icon_geometry(null);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]