Currently follow focus not very comfortable for me because of mouse under cursor steals focus when I switch current workspace with keyboard shortcut or when I toggling "Raise or lower window" shortcut. With click to fucus all works as expected but not with follow focus.
How to reproduce:
1) open two non overlapping windows on first workspace
2) activate first window
3) switch to second workspace
4) open third window
5) move mouse pointer in place where second window on first workspace located
6) switch to first workspace
expectation: first window still active on first workspace
result with follow focus: second window becomes activated
result with click to focus: as expected
This behavior makes not possible fast switch between two windows on different desktops. Especially it is annoying on multi-monitor setup where this two windows located on different screens.
As solution windows should be focused only after pointer crosses window's border outside-in.
The current behavior is probably the best I could come up with, this is a quite sensitive area prone to all sorts of race conditions and breakage and I'd rather not change it.
But feel free to experiment with the code the way you want and change it to your likings :)
-- GitLab Migration Automatic Message --
This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfwm4/-/issues/244.
Please create an account or use an existing account on one of our supported OAuth providers.
If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests
Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev