[gnome-shell-extensions/wip/window-list: 6/7] Temporarily add some compatibility code for 3.7.4
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions/wip/window-list: 6/7] Temporarily add some compatibility code for 3.7.4
- Date: Fri, 1 Feb 2013 16:43:58 +0000 (UTC)
commit 6172071fb9e0088ec8c265a868ef2cf665264956
Author: Florian MÃllner <fmuellner gnome org>
Date: Wed Jan 23 21:33:49 2013 +0100
Temporarily add some compatibility code for 3.7.4
extensions/window-list/extension.js | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js
index 264fda9..f43f6e3 100644
--- a/extensions/window-list/extension.js
+++ b/extensions/window-list/extension.js
@@ -19,6 +19,15 @@ const GroupingMode = {
};
+// compat with 3.7.4
+if (!Meta.Window.prototype.located_on_workspace)
+ Meta.Window.prototype.located_on_workspace = function(ws) {
+ return this.is_on_all_workspaces() || this.get_workspace() == ws;
+ };
+
+if (!Meta.Window.prototype.set_icon_geometry)
+ Meta.Window.prototype.set_icon_geometry = function() {}
+
function _minimizeOrActivateWindow(window) {
let focusWindow = global.display.focus_window;
if (focusWindow == window ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]