Skip to content

May monitor focus respect input:follow_mouse - #16060

Open
kolayne wants to merge 4 commits into
hyprwm:mainfrom
kolayne:monitors-respect-follow-mouse
Open

kolayne wants to merge 4 commits into
hyprwm:mainfrom
kolayne:monitors-respect-follow-mouse

Conversation

@kolayne

@kolayne kolayne commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Describe your PR, what does it fix/add?

Fixes the ability to focus a workspace with no windows when cursor:no_warps =true (#15649).

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

No.

Is it ready for merging, or does it need work?

Yes.

Note: the PR is based on the last commit of main for which tests were passing.

@github-actions

Copy link
Copy Markdown

cc @kolayne

@fxzzi

fxzzi commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

whilst you're at it #15076 (comment) still partially borked, clicking on an empty monitor (follow_mouse 2) focuses the workspace but window on the other monitor remains focused

@kolayne

kolayne commented Aug 31, 2026

Copy link
Copy Markdown
Contributor Author

I will try to look into it, but I won't include it in this PR. There seems to be a bunch of issues with multi-monitor focusing. Originally I wasn't even trying to fix this one: I wanted to fix #15649, but this came out on the way; the original bug that I was working on turned out to be rooted deeper, so I'm still waiting for @vaxerski's help at #15649 (comment). So, I would prefer to keep these patches atomic.

@Dregu

Dregu commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

This seems to make it required to specifically click an empty monitor after moving the mouse there to be able to open windows there with follow=1. That's not right.

Definitely a ton of multi-monitor issues around, was just discussing on discord how pointer gets moved to 0,0 when a window rule puts a window on an empty workspace on non-active monitor, that's probably in the same family of issues caused by changeWorkspace refusing to focus empty monitors.

@kolayne

kolayne commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

This seems to make it required to specifically click an empty monitor after moving the mouse there to be able to open windows there with follow=1.

Shit :(

@kolayne
kolayne force-pushed the monitors-respect-follow-mouse branch from 3767840 to b1c69d2 Compare October 13, 2026 15:44
@kolayne
kolayne force-pushed the monitors-respect-follow-mouse branch from b1c69d2 to 37ae2a8 Compare October 13, 2026 15:49
@kolayne

kolayne commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

Hey. I got a bit confused and I accidentally repurposed this PR, so it now solves a different relevant issue.

As for the original issue, as well as the one mentioned by @fxzzi, I came up with a more neat solution, which I'll try to implement soon (though, it depends on this PR).

This seems to make it required to specifically click an empty monitor after moving the mouse there to be able to open windows there with follow=1. That's not right.

Seems fixed now.

@kolayne
kolayne force-pushed the monitors-respect-follow-mouse branch 2 times, most recently from c17d6db to d370eb6 Compare October 18, 2026 21:52
Removes the mouse movement simulation after switching to a different
workspace. This was causing the focus to jump back to the old workspace
when cursor warp was not in use.

Fixes hyprwm#15649
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants