Close dialog may be attached to wrong window when closing from shell overview
Bug
The close dialog is attached to the wrong blackbox window under certain circumstances. For this you have to open 2 blackbox windows and in one of them you execute a long-running command like `journalctl`. Now when you focus the other window again, go to shell overview and then try to close the blackbox window with the long-running command the close dialog is attached to the empty blackbox window instead. This is really confusing, especially if you have windows across different workspaces.
Steps to Reproduce
- Open 2 blackbox windows
- In one of them, execute a long-running command like `journalctl`
- Focus the other empty blackbox window
- Open GNOME shell overview
- From there, try to close the black box window with the long-running command
- See the close dialog attached to the wrong blackbox window
Expected Outcome
The close dialog is attached to the window I want to close.
Actual Outcome
The close dialog is attached to the wrong window.
Video or Screenshot
Bildschirmaufzeichnung vom 2023-08-10, 23-26-31.webm
Information
- Wayland or X11? - Wayland
- Are you running Black Box via Flatpak? - Yes
- What version of Black Box? - 0.14.0
- Have you updated your Flatpak dependencies recently? - Yes
- Are you running Wayland + Nvidia? - No AMD