If "focus follows mouse" is enabled, I expect that the window under the mouse is always in focus. But if the mouse changes windows during selection, the wrong (=focused window when selection starts) remains in focus.
* Open two windows (e.g. xfce4-terminal, xterm, konsole) and place them side by side.
* Start selection in one window and move mouse during selection (=keep mouse button pressed) into the other window.
* Start typing --> wrong window
Expected behaviour: the window below the mouse gets focus when selection ends (mouse button is released).
Not a bug.
When selecting, the app has an active grab on the pointer and the WM won't receive the enter/leave events.
Thanks for your quick answer.
I'm sure you are right but as other window managers (e.g. in KDE) does not show this behavior there must be a way to prevent this. Maybe it is possible to set focus right after the selection.
Yes, enter/leave events are emitted on ungrab, so updating focus could be achieved afterwards, but not during selecting.
Afterwards should be fully sufficient and a big win. The problem happen quite often if someone use a tiled window layout.
-- 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/110.
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