mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-02-25 10:12:43 +00:00
Fix last commit, tweens are still active on onComplete...
Apparently the tween isn't tecnically done when onComplete is run, so `tweenCount`/`isTweening` isn't correct. Checking `isTweening` the clones does work, probably since they're queued before cloneContainer.
This commit is contained in:
parent
a8b23aa451
commit
9389d90cc4
@ -572,8 +572,7 @@ class Space extends Array {
|
||||
}
|
||||
|
||||
moveDone() {
|
||||
if (Tweener.getTweenCount(this.cloneContainer) > 0 ||
|
||||
this.cloneContainer.x !== this.targetX ||
|
||||
if (this.cloneContainer.x !== this.targetX ||
|
||||
this.actor.y !== 0 ||
|
||||
Navigator.navigating || inPreview || noAnimate ||
|
||||
Main.overview.visible) {
|
||||
@ -600,6 +599,10 @@ class Space extends Array {
|
||||
});
|
||||
|
||||
this.visible.forEach(w => {
|
||||
// Guard against races between move_to and layout
|
||||
if (Tweener.isTweening(w.clone))
|
||||
return;
|
||||
|
||||
w.clone.hide();
|
||||
let actor = w.get_compositor_private();
|
||||
clipWindowActor(actor, this.monitor);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user