It looks like the workareas-changed event reloads the tree but it should still check if the display monitor is available or listen to display connected/disconnected signals.
This use case happens when user uses a KVM switch (desktop single monitor shared with a laptop)
Nov 02 14:12:14 pop-os gnome-shell[164790]: Forge: [DEBUG] matched rules 1
Nov 02 14:12:14 pop-os gnome-shell[164790]: Forge: [DEBUG] adding workspace: ws0
Nov 02 14:12:14 pop-os gnome-shell[164790]: Forge: [DEBUG] initialized monitors: 0
Nov 02 14:12:14 pop-os gnome-shell[164790]: Forge: [DEBUG] adding workspace: ws1
Nov 02 14:12:14 pop-os gnome-shell[164790]: Forge: [DEBUG] initialized monitors: 0
Nov 02 14:12:14 pop-os gnome-shell[164790]: Forge: [DEBUG] adding workspace: ws2
Nov 02 14:12:14 pop-os gnome-shell[164790]: Forge: [DEBUG] initialized monitors: 0
Nov 02 14:12:14 pop-os gnome-shell[164790]: Forge: [DEBUG] adding workspace: ws3
Nov 02 14:12:14 pop-os gnome-shell[164790]: Forge: [DEBUG] initialized monitors: 0
Nov 02 14:12:14 pop-os gnome-shell[164790]: Forge: [DEBUG] initialized workspaces: 4
Nov 02 14:12:14 pop-os gnome-shell[164790]: Forge: [INFO] forge initialized
Nov 02 14:12:14 pop-os gnome-shell[164790]: Forge: [DEBUG] created keybindings
Nov 02 14:12:14 pop-os gnome-shell[164790]: Forge: [DEBUG] extension:enable
Nov 02 14:12:14 pop-os gnome-shell[164790]: Forge: [DEBUG] keybindings:enable
Nov 02 14:12:14 pop-os gnome-shell[164790]: Forge: [DEBUG] stylesheet reloaded /home/jmmaranan/.local/share/gnome-shell/extensions/forge@jmmaranan.com/stylesheet.css
Nov 02 14:12:14 pop-os gnome-shell[164790]: Forge: [INFO] enable: finalized vars
It looks like the
workareas-changedevent reloads the tree but it should still check if the display monitor is available or listen to display connected/disconnected signals.This use case happens when user uses a KVM switch (desktop single monitor shared with a laptop)