Seeing the code, I think that the problem is that
`_onEnabledExtensionsChanged()` is called both when the list of enabled
extensions change, and when the list of disabled extensions change. The
problem is that it is an async function, and the call in the callback
doesn't wait it to finish, so it can result in a race condition.
Specifically, it calls asynchronously to `_callExtensionEnable()`, which
I think is what can result in the problem.

I think that this patch should fix the problem (and also fix other async
calls being done synchronously), but have no way of testing it...

** Patch added: "fix-double-call.patch"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+attachment/5857419/+files/fix-double-call.patch

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/2098102

Title:
  Desktop switching shows windows from previous desktop

Status in gnome-shell package in Ubuntu:
  Won't Fix
Status in gnome-shell-extension-desktop-icons-ng package in Ubuntu:
  In Progress

Bug description:
  When I switch to another virtual desktop using Ctrl-Alt-[Left,Right],
  the windows from my previous desktop remain there and are still
  visible as if they were part of the desktop background. In front of
  them, I can see my actual windows from the desktop that I'm visiting
  currently. Desktop icons overlap the windows in the background.

  I can't interact with the windows in the background but their content
  is updated live as the applications are running.

  Switching desktops using the Activities overview works correctly as
  expected without this issue.

  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: gnome-shell 46.0-0ubuntu6~24.04.6
  ProcVersionSignature: Ubuntu 6.11.0-17.17~24.04.2-generic 6.11.11
  Uname: Linux 6.11.0-17-generic x86_64
  NonfreeKernelModules: zfs
  ApportVersion: 2.28.1-0ubuntu3.3
  Architecture: amd64
  CasperMD5CheckResult: pass
  CasperVersion: 1.498
  CloudArchitecture: x86_64
  CloudID: nocloud
  CloudName: unknown
  CloudPlatform: nocloud
  CloudSubPlatform: seed-dir (/var/lib/cloud/seed/nocloud)
  CurrentDesktop: ubuntu:GNOME
  Date: Wed Feb 12 14:03:19 2025
  DisplayManager: gdm3
  LiveMediaBuild: Ubuntu 24.04.2 LTS "Noble Numbat" - Release amd64 (20250211.1)
  ProcEnviron:
   LANG=C.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm-256color
   XDG_RUNTIME_DIR=<set>
  RelatedPackageVersions: mutter-common 46.2-1ubuntu0.24.04.5
  SourcePackage: gnome-shell
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2098102/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to