Fix application thumbnail sizing when the height is greater than the width of a window.
This bug happened because the thumbnail box was only maxed, not set to 256x256. Standard window thumbnails would max out only the width to 256. Having a window with its height greater than its width meant that the height would max out, but not the width, causing thumbnails to look uneven. https://bugzilla.gnome.org/show_bug.cgi?id=604963
This commit is contained in:
@ -493,6 +493,11 @@ StTooltip {
|
|||||||
spacing: 4px;
|
spacing: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.switcher-list .thumbnail {
|
||||||
|
width: 256px;
|
||||||
|
height: 256px;
|
||||||
|
}
|
||||||
|
|
||||||
.switcher-list .outlined-item-box {
|
.switcher-list .outlined-item-box {
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
border: 2px solid rgba(85,85,85,1.0);
|
border: 2px solid rgba(85,85,85,1.0);
|
||||||
|
@ -750,11 +750,14 @@ ThumbnailList.prototype = {
|
|||||||
let box = new St.BoxLayout({ style_class: "thumbnail-box",
|
let box = new St.BoxLayout({ style_class: "thumbnail-box",
|
||||||
vertical: true });
|
vertical: true });
|
||||||
|
|
||||||
|
let bin = new St.Bin({ style_class: "thumbnail" });
|
||||||
let clone = new Clutter.Clone ({ source: windowTexture,
|
let clone = new Clutter.Clone ({ source: windowTexture,
|
||||||
reactive: true,
|
reactive: true,
|
||||||
width: width * scale,
|
width: width * scale,
|
||||||
height: height * scale });
|
height: height * scale });
|
||||||
box.add_actor(clone);
|
|
||||||
|
bin.add_actor(clone);
|
||||||
|
box.add_actor(bin);
|
||||||
|
|
||||||
let title = windows[i].get_title();
|
let title = windows[i].get_title();
|
||||||
if (title) {
|
if (title) {
|
||||||
|
Reference in New Issue
Block a user