Window-list icons reorder when turn monitor off/on or switch to different computer with KVM switch

I’m running wayland+classic on Rocky Linux 9.

When I drag the windows to a specific order, if I power down the monitor and then power up, the order changes. The same thing happens when switch to another computer with a KVM switch and then back (KVM=keyboard video mouse; KVM moves monitor to other computer and then back to Rocky Linux when I want to return to linux).

How do I keep window order the same after turn off/on monitor or switch to another computer with KVM and back to linux? Or is this a better question for Gnome forum?

Here is info about my setup (format: => output:

\- gnome-shell --version => GNOME Shell 40.10

\- rpm -q gnome-shell-extension-window-list => gnome-shell-extension-window-list-40.7-29.el9_7.noarch

\- echo $XDG_SESSION_TYPE => wayland

\- cat /etc/os-release => NAME="Rocky Linux"

VERSION="9.7 (Blue Onyx)"

ID="rocky"

ID_LIKE="rhel centos fedora"

VERSION_ID="9.7"

PLATFORM_ID="platform:el9"

PRETTY_NAME="Rocky Linux 9.7 (Blue Onyx)"

ANSI_COLOR="0;32"

LOGO="fedora-logo-icon"

CPE_NAME="cpe:/o:rocky:rocky:9::baseos"

HOME_URL="https://rockylinux.org/"

VENDOR_NAME="RESF"

VENDOR_URL="https://resf.org/"

BUG_REPORT_URL="https://bugs.rockylinux.org/"

SUPPORT_END="2032-05-31"

ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"

ROCKY_SUPPORT_PRODUCT_VERSION="9.7"

REDHAT_SUPPORT_PRODUCT="Rocky Linux"

REDHAT_SUPPORT_PRODUCT_VERSION="9.7"

- [after monitor power off and on] journalctl -b --no-pager | grep -E ‘gnome-shell|mutter|window-list|display|monitor|output|DPMS|wayland’ | tail -100 => Apr 17 11:16:53 [redacted] gnome-shell[3245]: ../gobject/gsignal.c:2732: instance ‘0x5562d5162730’ has no handler with id ‘3189589’

Apr 17 11:16:53 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d1729b80' has no handler with id '3192820'

Apr 17 11:16:53 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d406e640' has no handler with id '3194169'

Apr 17 11:16:53 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d406e9e0' has no handler with id '3194923'

Apr 17 11:16:53 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d406ed80' has no handler with id '3195608'

Apr 17 11:16:53 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d406e2a0' has no handler with id '3196193'

Apr 17 11:16:53 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d53f84a0' has no handler with id '3197002'

Apr 17 11:16:53 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d406f4c0' has no handler with id '3197952'

Apr 17 11:16:53 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d406fc00' has no handler with id '3198843'

Apr 17 11:16:53 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d19ca110' has no handler with id '3199648'

Apr 17 11:16:53 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d19ca4b0' has no handler with id '3200298'

Apr 17 11:16:53 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d19ca850' has no handler with id '3201118'

Apr 17 11:16:53 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d19cabf0' has no handler with id '3201872'

Apr 17 11:16:53 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d19caf90' has no handler with id '3202554'

Apr 17 11:16:53 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d19cb330' has no handler with id '3203298'

Apr 17 11:16:53 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d0cb00b0' has no handler with id '3258999'

Apr 17 11:16:53 \[redacted\] gnome-shell\[3245\]: Error adding children to desktop: desktopGrid is undefined

Apr 17 11:16:53 \[redacted\] gnome-shell\[3245\]: Error adding children to desktop: desktopGrid is undefined

Apr 17 11:16:53 \[redacted\] gnome-shell\[3245\]: Error adding children to desktop: desktopGrid is undefined

Apr 17 11:16:53 \[redacted\] gnome-shell\[3245\]: Error adding children to desktop: desktopGrid is undefined

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3171688'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3172021'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3167031'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3166700'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3168362'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3168029'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3170023'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3167364'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3167695'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3169357'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3169690'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3174352'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3174685'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3173020'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3173353'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3172354'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3172687'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3171022'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3171355'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3175018'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3175352'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3173686'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3174019'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3168693'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3169024'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3170356'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3170689'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3166367'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3175685'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3176018'

Apr 17 11:16:58 \[redacted\] gnome-shell\[3245\]: ../gobject/gsignal.c:2732: instance '0x5562d5d4f8d0' has no handler with id '3191485'

note: I replaced my computer name with "[redacted] "

My guess is that it detects resolution and hardware changes and tries to re-arrange, a bit like when you turn a mobile phone sideways and it switches to landscape.