“focus follows mouse” does not respect the window orders while closing a window

Bug #958432 reported by indy
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Focus Follows Mouse
Fix Released
Undecided
Unassigned

Bug Description

When focus-follows-mouse is enabled on Unity (gconf-editor > apps > metacity > general > focus mode: "sloppy", auto-raise: "false") , the system does not respect the windows order while closing a window.

For example, if you close a foreground window and under the "X" there is another application, like a terminal, the terminal automatically raises on top, also if there are other windows opened in front of it.

Here is an example.
Before clicking:
http://i.stack.imgur.com/utDJ9.png

After clicking:
http://i.stack.imgur.com/K7wpp.png

Moreover, it is impossible to rename/remove desktop icons if there is at least one window opened, because the "focus" remains on the window.

This happends either with focus mode: "sloppy" and focus mode: "mouse".

indy (davide-ricci82)
description: updated
tags: added: 11.10 oneiric
Revision history for this message
indy (davide-ricci82) wrote :

user Martin D Kealey on

http://askubuntu.com/questions/111470/focus-follows-mouse-does-not-respect-the-window-orders-while-closing-a-window

suggested also turning off /apps/metacity/general/auto_raise.

This solves the bug!

Changed in focus-follows-mouse:
status: New → Fix Released
Revision history for this message
Jean Jordaan (jean-jordaan) wrote :

The current status does not fix the issue as stated. The _raise_ behaviour is modified, but the bottom window still grabs focus just because the mouse happens to be over it.

The mouse should not transfer focus randomly based on whatever window happens to appear under it. Focus should follow logical rules (i.e. if the top window is closed, the window under it takes focus).

To transfer focus, _click_ on a window, or _move_ the mouse into it.

E.g. in the referenced askubuntu question: Click to focus and raise the bottom terminal, or move out/in to focus the bottom terminal without raising it.

The same issue pertains when switching workspaces (focus is transferred to whatever window happens to be under the mouse on the destination workspace). The mouse position is determined by what I was doing on the origin workspace, and does not indicate any intention to change focus on the target workspace.

I propose to reopen this bug.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.