Skip to content

bug: when disconnecting display, detaches all existing windows from tree #78

Description

@jmmaranan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcriticalAn issue that has a very high priority to be fixed or closedgnome-3xGnome-Shell 3.3x version seriesgnome-4xGnome-Shell 4x version serieswindow-mgtWindow management components

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions