As I suspected... when calling enable() twice, the old pointers to the
previous methods are overwritten with the new function pointer; and
that's why disabling the extension won't restore them.

A quick workaround is to keep track of the current status, and just
ignore any enable() called when the extension has already been enabled.
I can do it quickly.

-- 
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:
  Confirmed
Status in gnome-shell-extension-desktop-icons-ng package in Ubuntu:
  Confirmed

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