Fix reload visibility

Clutter's transition framework will delay painting the ease until some sort of
painting is requested or whatnat, even if duration == 0.

In particular on reload this means clones are invisible for quite a while.
Simply force positions on startup.
This commit is contained in:
Tor Hedin Brønner
2019-09-28 16:19:48 +02:00
parent 18fd713900
commit aa1cc2894b
+6 -1
View File
@@ -241,6 +241,12 @@ class Space extends Array {
animateWindow(w);
});
this.layout(false);
// Force immediate painting of clones on reload
this.getWindows().forEach(w => {
let c = w.clone;
c.x = c.targetX;
c.y = c.targetY;
});
let selected = this.selectedWindow;
if (selected) {
@@ -351,7 +357,6 @@ class Space extends Array {
Tweener.addTween(c, {
x, y,
time,
transition: 'easeInOutQuad',
onComplete: this.moveDone.bind(this)
});
}