Add "focus-follows-mouse"-like option but for outputs only #378
Replies: 3 comments 8 replies
-
Hmm, maybe, yeah. You're right, every monitor (every workspace actually) stores a focused window, there's no need to do anything extra. |
Beta Was this translation helpful? Give feedback.
-
Somewhat related, I would love a focus-follows-mouse that changes focus (even within one output), but never changes the layout. On niri 0.1.6, if you have a screen that shows
and you move the pointer from the left column to the right column, the screen scrolls to only show the right column. I don't want scrolling to happen just because I'm moving the pointer, but I can't live without focus-follows-mouse. |
Beta Was this translation helpful? Give feedback.
-
Let's discuss in #491 |
Beta Was this translation helpful? Give feedback.
-
I like how "focus follows mouse" works in general but it's not something I could normally use here with two monitors placed side-by-side since moving mouse to the other screen can move the windows view frame. Therefore I have disabled it, but it's somewhat annoying that I need to click to focus even when going with mouse to the other monitor. I wish there was an option like "focus-follows-mouse" but exclusively for outputs.
Since focused window on each monitor is already stored separately (I assume so since there exists "focus-ring") it shouldn't require a lot of changes in existing code I guess. A general algorithm is the following:
Didn't look into the code yet, maybe the 4th step isn't needed at all. I'd try to implement it myself but I don't have enough time for it as of now, and at least not until exams are over.
Beta Was this translation helpful? Give feedback.
All reactions