Ooops, the patch in comment #9 may be unreliable because you could have two racing enable() calls and the first one hasn't flagged isEnabled yet because innerEnable was deferred:
if (Main.layoutManager._startingUp) { this.data.startupPreparedId = Main.layoutManager.connect('startup-complete', () => this.innerEnable()); } else { this.data.startupPreparedId = null; this.innerEnable(); } You may need a separate 'started' flag or something like that, which is true immediately unlike 'isEnabled'. Also we should move this discussion to https://gitlab.com/rastersoft/desktop-icons-ng ** Changed in: gnome-shell-extension-desktop-icons-ng (Ubuntu) Milestone: None => ubuntu-25.04 ** Changed in: gnome-shell (Ubuntu) Status: Confirmed => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2098102 Title: Desktop switching shows windows from previous desktop To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs