shell
shell copied to clipboard
Wrong window activated after removing any window from a stack that also contains a Chromium window
(1) Issue/Bug Description:
The situation: two stacks side by side, each with multiple windows, including Chromium windows. Evolution's (e-mail client) main window in the left stack.
When hitting "Reply", Evolution opens a new window, which most of the time gets opened in the same stack. I want to instead move it to the stack on the right so I can see both the original message and my reply. So I use ALT+Mousedrag to drag the window into the right-hand stack.
After doing so, I would expect the Evolution main window in the left-hand stack to be visible again. However, a random Chromium window becomes visible instead.
Reproducible every time (here), and only as long as Chromium windows are involved (i.e., doesn't happen if all tabs are gnome-terminal, nemo, or whatever else). So it seems like Chromium somehow "steals" focus. (Chromium is a really bad citizen in many ways, so it's not unexpected.)
(4) Distribution (run cat /etc/os-release
):
PRETTY_NAME="Pop!_OS 21.10"
(5) Gnome Shell version:
40.5
(6) Pop Shell version (run apt policy pop-shell
or provide the latest commit if building locally):
1.1.0~1643736613~21.10~afb4f12
(8) Monitor Setup (2 x 1080p, 4K, Primary(Horizontal), Secondary(Vertical), etc):
1x 1280x1024 (left), 1x 2560x1080 (right), both horizontal
(9) Other Installed/Enabled Extensions:
[email protected] [email protected] just-perfection-desktop@just-perfection [email protected] true-color-invert@jackkenney [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
On another thought and after some Googling, this seems to be a Chromium problem and apparently has nothing to do with pop_shell (though it's of course more apparent here because the fact of a window stealing focus has more visible consequences).
Feel free to close!
Update: Also happens with other apps. Double-click a JPG in nemo, JPG opens in eog, close eog, stack is switched to PDF viewer (instead of back to nemo).