Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop moving mouse between monitors to "steal" focus #933

Closed
sound-friend opened this issue Aug 23, 2024 · 5 comments
Closed

Stop moving mouse between monitors to "steal" focus #933

sound-friend opened this issue Aug 23, 2024 · 5 comments
Labels
enhancement Adds a new feature or extends scope

Comments

@sound-friend
Copy link

Is your feature request related to a problem? Please describe.
not sure if this is intended behaviour, but it's aggravating when i have multiple monitors that when i switch between them, my focus is automatically switched to that monitor and the last window open. i typically select an item to copy, and copy it as i'm moving to the other monitor. this makes me miss a lot of copies, as well as other motions.

Describe the solution you'd like
a togglable switch to "change focus to current monitor only when clicked"

i didn't see a current option in there, but if there is, i'll close this issue. thanks for such an innovative way of managing the desktop?

@sound-friend sound-friend added the enhancement Adds a new feature or extends scope label Aug 23, 2024
@jtaala
Copy link
Collaborator

jtaala commented Aug 24, 2024

Unfortunately, this is a constraint for implementing for "per monitor workspaces" (note: gnome doesn't do per monitor workspaces). You can read about this constraint here #389 (comment).

Closing this issue as a duplicate of #389.

In short, the only way to disable this would be to not do "per monitor workspaces" (and would mean a pretty much a rewrite / reimplementation of many paperwm concepts). Unfortunately, multi-monitor support still has issues in PaperWM (and is currently paperwm's archilles heel). Interestingly, this was one of the reasons (gnome, or more specifically mutter, workspace/monitor constraints) niri dev was started.

Closing as duplicate of #389.

@jtaala jtaala closed this as completed Aug 24, 2024
@sound-friend
Copy link
Author

sound-friend commented Aug 24, 2024 via email

@jtaala
Copy link
Collaborator

jtaala commented Aug 24, 2024

Well, it's still something that we hope will be addressed in gnome itself (in which case we can align with gnome instead of fighting it). We've just had no luck here - I've actually considered forking a simpler paperwm which doesn't do "per monitor workspaces" - which would alleviate/resolve these multi-monitor issues, but would make paperwm work very differently (the good parts) for multi-monitors.

@sound-friend
Copy link
Author

sound-friend commented Aug 24, 2024 via email

@jtaala
Copy link
Collaborator

jtaala commented Aug 24, 2024

Well, a workspace in mutter is just a logical grouping of windows.

Essentially, in primary display only, when "switching" workspaces, windows on the non-primary are changed to the same grouping when any workspace is activated (i.e. coming out of overview or when "switching workspace"), e.g. with functions like metaWindow.change_workspace.

So, when a workspace is activated, all windows (across monitors) are on the same workspace (or logical grouping) again. Once out of overview etc, you can drag them across monitor boundaries, like it's one big workspace (because it is), e.g. one workspace across monitors (normal gnome behaviour).

You can see/check this by using looking glass (alt+f2) and selecting different windows on the different monitors and running .get_workspace().index() (in the evaluator) on those windows (metaWindow) - you'll see they're all actually on the same workspace index no matter what workspace to switch to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adds a new feature or extends scope
Projects
None yet
Development

No branches or pull requests

2 participants