[gnome-shell-extensions] alternate-tab: respect aspect ratio for window thumbnails
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] alternate-tab: respect aspect ratio for window thumbnails
- Date: Wed, 22 Aug 2012 14:21:14 +0000 (UTC)
commit a78a16b4a7a255c7e4304c97b08160d451831e29
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Wed Aug 22 15:35:33 2012 +0200
alternate-tab: respect aspect ratio for window thumbnails
It is weird if 16:9 thumbnails get turned into squares. Instead,
center them.
https://bugzilla.gnome.org/show_bug.cgi?id=656217
extensions/alternate-tab/extension.js | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/extensions/alternate-tab/extension.js b/extensions/alternate-tab/extension.js
index febd040..c37a594 100644
--- a/extensions/alternate-tab/extension.js
+++ b/extensions/alternate-tab/extension.js
@@ -341,6 +341,8 @@ const WindowIcon = new Lang.Class({
this.clone = new Clutter.Clone({ source: windowTexture,
width: width * scale,
height: height * scale,
+ x_align: Clutter.ActorAlign.CENTER,
+ y_align: Clutter.ActorAlign.CENTER,
// usual hack for the usual bug in ClutterBinLayout...
x_expand: true,
y_expand: true });
@@ -353,6 +355,8 @@ const WindowIcon = new Lang.Class({
this.clone = new Clutter.Clone({ source: windowTexture,
width: width * scale,
height: height * scale,
+ x_align: Clutter.ActorAlign.CENTER,
+ y_align: Clutter.ActorAlign.CENTER,
// usual hack for the usual bug in ClutterBinLayout...
x_expand: true,
y_expand: true });
@@ -381,7 +385,7 @@ const WindowList = new Lang.Class({
Extends: AltTab.SwitcherList,
_init : function(windows, settings) {
- this.parent(true);
+ this.parent(false);
this.windows = windows;
this.icons = [];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]