GNOME Bugzilla – Bug 123717
Changing workspaces with the mouse unfocuses windows
Last modified: 2004-12-22 21:47:04 UTC
Let's have one maximized window on the first workspace and one on the second, and suppose the first one has focus. When I click on the second workspace with the mouse and then select the first workspace with the keyboard, the window (the only one visible) no longer has focus. This is annoying; switching workspaces using keyboard doesn't lose focus. I'm not sure if this is the responsibility of the workspace switcher or the window manager. I'm using metacity with switching windows on click.
I guessed what causes this: when I click anywhere on a panel (e.g. to switch workspaces or to switch windows), the panel gets focus on the current workspace and thus the previously focused window loses focus. Although there is a logic in this, it would be more convenient to let the panel not grab focus so easily, e.g. if I'm doing just a single click which immediately takes the focus elsewhere anyway. When I go back to this workspace with the keyboard, the only application window is unfocused just because several minutes earlier I used the panel to switch from this workspace...
*** Bug 149674 has been marked as a duplicate of this bug. ***
I think the recent changes in metacity fixed this problem. Marking as a dup of bug 135810, please feel free to re-open if you still see this bug. *** This bug has been marked as a duplicate of 135810 ***
Yeah, the recent changes fix this. However, a closer match is bug 120100. For the specific case that the reporter mentions (i.e. the mouse is over the panel), if he/she is using sloppy focus, then the changes in bug 135810 were needed in addition to the patch in 120100.