Open RafalSkolasinski opened 2 years ago
This seems to be a problem with gnome, see https://askubuntu.com/questions/640805/gnome-shell-multi-desktop-changes-focus-to-other-screen (which also has suggested workaround).
FYI: I've also been annoyed by this for a very long time :disappointed:
I am also experiencing this problem, and it makes me annoyed several times a day!
Try deactivating the "Mouse Cursor Follows Active Window" setting in Extensions > pop-shell settings
Try deactivating the "Mouse Cursor Follows Active Window" setting in Extensions > pop-shell settings
Yes it works. If you are switching to a workspace that has only a window in the external monitor than the focus is in the external monitor and il will affect the switching to another workspace.
If you are switching to a workspace that has only a window in the external monitor than the focus is in the external monitor and il will affect the switching to another workspace.
Sorry, I'm not sure I know what you mean. For me, deactivating the follow behavior has no effect on focused windows only on external displays. The cursor remains where it is before and after switching workspaces, as I would expect.
I'm facing the same issue. It annoys me because I really use workspaces on the main screen. The secondary screen is there just to display info that I need across all my workspaces. For example a documentation page or some youtube podcast.
I'm trying to figure out how the focus is stolen by the window on the secondary display when I change the workspace, but no luck until now. Anyway if manage figuring a fix I'll propose a PR, but I don't promise anything as I just start getting used with PopShell code base and typescript as a language.
Came here from a google search and I have this problem in Debian 12 as well, i guess it's gnome shell related. Would be happy if someone found a fix this is super annoying, makes me want to unhook my spare monitor.
I +1 this, i'd really love to be able to have a setting for that at least. Workarounds are not really much more practical either since it teleports your mouse and even when going on an empty workspace, the mouse still goes on the app open on my second monitor.
For me it was one of these 'move focus' options
Edit: I didnot realize this was pop-os repo. I am on Ubuntu 18.04 but
@hakanErgin how do you get thi these settings?
As a reference, this is a known bug in gnome-shell https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/742
Yeah this is a GNOME issue as I've had it on different computers running GNOME, each using different distros. My workaround for it is using gnome-tweaks application to change the window focus mode to mouse and just keep my mouse on my workspaces monitor.
I also have this bug in Ubuntu 24.04
(1) Issue/Bug Description:
I am working with "Workspaces on Primary Display Only". When moving between workspaces often focus lands on the window on the auxiliary display that is quite undesired.
Having workspace "isolated" more to the given display would give much better user experience.
(2) Steps to reproduce (if you know):
Note: the focus may land on the most recently used window (I think that's the case?) so maybe to reproduce one need to focus on window on auxiliary monitor, go to another workspace, do something on main monitor and then change workspace back.
(3) Expected behavior:
Focus stays in within dynamic workspaces having auxiliary monitor not accidentally focused.
(4) Distribution (run
cat /etc/os-release
):(5) Gnome Shell version:
Whatever comes with above currently,
(6) Pop Shell version (run
apt policy pop-shell
or provide the latest commit if building locally):(7) Where was Pop Shell installed from:
PopOS
(8) Monitor Setup (2 x 1080p, 4K, Primary(Horizontal), Secondary(Vertical), etc):
Dell XPS 7590 + external Dell monitor
(9) Other Installed/Enabled Extensions:
(10) Other Notes: