Bug 80412
| Summary: | focus doesn't follow mouse pointer after workspace switch | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Public Beta | Reporter: | Alexandre Oliva <aoliva> |
| Component: | metacity | Assignee: | Havoc Pennington <hp> |
| Status: | CLOSED RAWHIDE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | phoebe | CC: | notting, petersen, wtogami |
| Target Milestone: | --- | Keywords: | MoveUpstream, Triaged |
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2003-02-19 04:55:58 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 79579 | ||
|
Description
Alexandre Oliva
2002-12-26 00:37:58 UTC
Upstream as http://bugzilla.gnome.org/show_bug.cgi?id=103335 I tracked this down, it's pretty simple; the EnterNotify when the workspace switch completes is ignored because when doing Alt+Tab we want to ignore EnterNotify caused by the little popup thingy, so the same code applies here. But it probably should not apply here. Since the EnterNotify does not focus the window the mouse pointer ends up in, the top window ends up focused as switching spaces focuses top window. Basically, mouse focus breaks keyboard navigation, because keynav does not move the mouse pointer, so there's a nest of hacks for ignoring the mouse pointer in specific cases (breaking the pointer location == focus location invariant), and it's a little bit fragile. There are various possible fixes, just have to put one in. Thanks for the investigation. I suppose moving the mouse pointer on Alt-TAB is not an option? Say, to the center of the title of the window? I can see that some people might prefer otherwise, but if it's to preserve an invariant, it might be worth it. Fixed. I would really prefer (an option at least) that when returning to a workspace the window that last had focus there be given it back. Do people really think, "Ah I want to use the terminal in the top left corner on desktop1 now so better move the cursor there before switching over.."? I sure don't, but maybe it's just me? If you don't have focus-follows-mouse enabled, I see that your suggestion makes a lot of sense. But if focus is supposed to follow the mouse, having the focus on a window that doesn't have the mouse on it after switching desktops doesn't feel like the right approach. |