GNOME Bugzilla – Bug 103335
focus doesn't follow mouse pointer after workspace switch
Last modified: 2004-12-22 21:47:04 UTC
Bugzilla-Product: metacity Description: Please see https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=80412 for the original bug report. (This is a batch-forwarded bug, if it doesn't make sense let me know. The bug was forwarded because it's a feature request and we don't want to maintain the custom feature or UI change in Red Hat patches, or because we don't expect to fix it ourselves but thought it might be a legitimate issue. It was not obviously a packaging or Red Hat specific bug. If you would rather not be forwarded such bugs, please advise. Thanks) ------- Bug moved to this database by unknown@bugzilla.gnome.org 2003-01-12 22:48 ------- Reassigning to the default owner of the component, hp@redhat.com.
I just want to point out that this is actually a regression. Focus used to follow the mouse pointer in Red Hat Linux 8.0, even after a workspace switch.
Why does this bug exist at all? You should get an EnterNotify on whichever window the mouse is resting on, regardless of what keyboard method you use to change desktops (e.g. Ctrl-Alt-arrows, which pop up the desktop selector window, vs. a keybinding which directly changes desktops without the popup).
This is fixed in CVS, though not in a very elegant way for 2.2.x Federico - the reason it exists is because mouse focus doesn't actually maintain the "window containing the pointer is focused" invariant. The reason it doesn't is that to do keynav while maintaining it, you have to warp the pointer all over the place, which sucks. So the code for click to focus mode to track the active window across workspace switches still gets run to try to handle that. Of course my hack for 2.2.x basically restores the "window containing pointer is focused" invariant when you switch spaces, one reason it isn't quite right. I have a plan to fix it up on HEAD.