Issue with window focus on pop-up tools in Krita & picture in picture mode in Firefox(& Pureref or any other floating window set as always on top)
(1) Issue/Bug Description: When getting out of pop up tools like color selector(in Krita), the focus shifts to a open PiP window of Firefox(when in same workspace) instead of switching back to Krita
(2) Steps to reproduce (if you know):
- Enable PiP mode for a video in firefox & have the PiP window in the same workspace Krita is open.
- Show color selector(or similar tools like color history) using shortcut(default Shift+I) in Krita.
- Move cursor/pen outside of the pop-up tool, but still above Krita.
- See the error(focus shifts to PiP window)
(3) Expected behavior: The focus should shift back to Krita, so we can work on Krita without any interruptions.
(4) Distribution (run cat /etc/os-release): Pop!_OS 21.10
(5) Gnome Shell version:
gnome-shell:
Installed: 40.5-1ubuntu2pop0~1645636399~21.10~e117dda
Candidate: 40.5-1ubuntu2pop0~1645636399~21.10~e117dda
Version table:
*** 40.5-1ubuntu2pop0~1645636399~21.10~e117dda 1001
1001 http://apt.pop-os.org/release impish/main amd64 Packages
100 /var/lib/dpkg/status
40.5-1ubuntu2 500
500 http://us.archive.ubuntu.com/ubuntu impish/main amd64 Packages
(6) Pop Shell version (run apt policy pop-shell or provide the latest commit if building locally):
pop-shell:
Installed: 1.1.0~1646843863~21.10~396b2f3
Candidate: 1.1.0~1646843863~21.10~396b2f3
Version table:
*** 1.1.0~1646843863~21.10~396b2f3 1001
1001 http://apt.pop-os.org/release impish/main amd64 Packages
1001 http://apt.pop-os.org/release impish/main i386 Packages
100 /var/lib/dpkg/status
Firefox version(default install): 98.0
Krita version(Steam, appimage): 5.0.2
(7) Where was Pop Shell installed from: pre-installed
(8) Monitor Setup (2 x 1080p, 4K, Primary(Horizontal), Secondary(Vertical), etc): Single 1080p
(9) Other Installed/Enabled Extensions:
- Clipboard Indicator
- GTK Title Bar
- Impatience
- Night Theme Switcher
- Screenshot Locations
- Volume Mixer
(10) Other Notes: The issue could be related to https://github.com/pop-os/shell/issues/1316
Just want to add here that this also happens when using Krita with PureRef(a popular image reference tool). It's actually very annoying to always have to switch to Krita again after changing a color or using a pop up tool in Krita because of change in window focus. Please look into this. I can share a recording if you want to see the issue in action.