mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-05 19:56:53 +00:00
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:
@@ -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)
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user