-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Feature: add option to enable/disable "multimonitor focus follows mouse" #755
base: develop
Are you sure you want to change the base?
Conversation
in another space on another monitor) - if space is shown on that monitor don't do gnome workspace switch animation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switching between monitors on touch is entirely broken (#655 behavior), regardless of what the "monitor focus follows mouse" setting is set to.
Disregard, broken behavior seems to have appeared prior.
One thing I noticed it that the mouse move/position does not seem to be passed to windows on other monitors. I.e. I can hover over tabs on a firefox window that is not active in the current workspace but I can't hover over tabs on a firefox window on the other monitor. This also means the first click is not passed to the application. So you always have to click twice, once to activate the other monitor and the second time to actually click where you want to click. I think this is a major inconvenience. I'm not sure if this is something that is cause by this PR or not. But given that we no longer have a click overlay I would have expected this to work. I also got the following error in the logs when dnd-ing windows (always happens from one monitor to another, sometimes happens when staying on one monitor). I checked terminator and files:
But I haven't noticed any issues, just the error in the log. Also I noticed sometimes the window does not end up where I dropped it. Not sure if all of this is caused by this PR, but I haven't seen that before. But then again I don't dnd windows. |
monitor-focus-follow-mouse is disabled (first click enables space, 2nd virtual click happens after).
I noticed this. I'm not sure what to do about the position not being passed (it's not the ClickOverlay but I believe the background element eats events until the workspace is activated). We can do something about needing two clicks through - I've added a virtual click afterwards (i.e. first click activates space, followed by another click on the actual cursor position. Pull the latest to try it out. |
P.S. I knew about the log errors - it's a signals cleanup issue after grab/drag finish, doesn't cause any actual issues so will look at that one later. |
While the first click is fixed.
This also means that you e.g. can't drag firefox tabs between different firefox windows on different monitors. Instead it just creates a new window on the original monitor. This is a major inconvenience. Also I use the Search Light extension. And I noticed it immediately closes again when I try to open it on an empty monitor. It works if I enable "Monitor focus follows mouse" or if a floating window is open anywhere or if the monitor has a tiled window. |
activated by other means then pointer check remains valid).
Sorry, I'm on the release branch, so not applicable to this PR. |
Thanks @Thesola10 - I believe I know what that likely is. Can you check the latest on this PR? @Lythenas @Thesola10, it's looking like this approach to focusing (or not focusing monitors by mouse movement) might not be feasible as PaperWM tiling seems to need a space activated to properly focus elements (which is likely why the "monitor focus follows mouse" approach was implemented in the first place. In any case, let's put this one on hold until we can get the touch stuff working again. @Thesola10, let me know if the last commit fixed the issue with "moving mouse back to monitor not focusing" issue. If so, we'll get those changes in first before looking at this PR again. |
That's weird though - haven't seen that myself. Create an issue for sure to see if others are seeing this (and def run Yeah, if you're on |
Hey all, see comment on why this PR's approach isn't currently feasible with PaperWM's multimonitor approach (not without some issues anyway): Thoughts? |
This PR implements some fixes for a regression to touchscreen support by #751. It also includes some smaller fixes implemented during development of #755. Lastly, it includes replacing deprecated methods (which are entirely removed int Gnome 46). @Thesola10, can you give this branch a test and let me know if touch is working again?
Resolves #389.
When using multiple monitors, by default, PaperWM focuses/activates a monitor when the mouse cursor enters said monitor.
This PR makes this behaviour a user settable option: