diff --git a/js/ui/altTab.js b/js/ui/altTab.js index d10133568..95306817d 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -33,10 +33,9 @@ const AppIconMode = { }; function _createWindowClone(window, size) { - let windowTexture = window.get_texture(); - let [width, height] = windowTexture.get_size(); + let [width, height] = window.get_size(); let scale = Math.min(1.0, size / width, size / height); - return new Clutter.Clone({ source: windowTexture, + return new Clutter.Clone({ source: window, width: width * scale, height: height * scale, x_align: Clutter.ActorAlign.CENTER, diff --git a/js/ui/overview.js b/js/ui/overview.js index ab95ddb17..04a92b570 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -378,7 +378,7 @@ const Overview = new Lang.Class({ return null; let window = windows[0]; - let clone = new Clutter.Clone({ source: window.get_texture(), + let clone = new Clutter.Clone({ source: window, x: window.x, y: window.y }); clone.source.connect('destroy', Lang.bind(this, function() { clone.destroy(); diff --git a/js/ui/workspace.js b/js/ui/workspace.js index bacc75b6d..a1d1582ae 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -111,7 +111,7 @@ const WindowClone = new Lang.Class({ this.metaWindow._delegate = this; this._workspace = workspace; - this._windowClone = new Clutter.Clone({ source: realWindow.get_texture() }); + this._windowClone = new Clutter.Clone({ source: realWindow }); // We expect this.actor to be used for all interaction rather than // this._windowClone; as the former is reactive and the latter // is not, this just works for most cases. However, for DND all