"Focus Follow Mouse" auto-raises windows when it shouldn't

Bug #1983117 reported by Jason Gunthorpe
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mutter (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Steps to reproduce on Jammy LTS:
1. Create a new empty user and login under Wayland
2. Using gnome-tweaks select "Windows" -> "Window Focus" -> "Focus on Hover"
3. Notice that "Raise Windows When Focused" is disabled

Windows auto-raise when changing workspaces:
1. Open two terminal windows and partially overlap them
2. Place the mouse over the lower terminal window so that it remains lowered
3. Do not move the mouse: Press Super-End to change to another workspace, then Super-Begin to go back
4. Observe that the terminal window the mouse is over has been raised

The expected behaviour is that windows are not auto-raised when changing workspaces

Windows auto-raise when closing windows:
1. Open three terminal windows such that parts of all windows are visible but all windows overlap.
2. Place the mouse inside the topmost terminal so that it is within the visible lowest terminal
3. Without moving the mouse Ctrl-D the terminal to close it
4. Observe that the lowest terminal window the mouse is over has been raised to the top.

The expected behaviour is that windows are not auto-raised when closing windows

Logout/Login using X and repeat these actions. Notice that window ordering remains fixed in order. This has been the expected behaviour of gnome for the last 10 years or so.

This is a behaviour regression for Ubuntu users upgrading from the last LTS (using X).

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: mutter (not installed)
ProcVersionSignature: Ubuntu 5.15.0-43.46-generic 5.15.39
Uname: Linux 5.15.0-43-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Fri Jul 29 12:11:27 2022
InstallationDate: Installed on 2022-06-25 (33 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
SourcePackage: mutter
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jason Gunthorpe (jgunthorpe) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

This might be related to bug 1969602, but please also review these bugs to check for duplicates:

https://bugs.launchpad.net/ubuntu/+source/mutter/+bugs?field.tag=focus

Changed in mutter (Ubuntu):
status: New → Incomplete
status: Incomplete → New
tags: added: focus
Revision history for this message
Jason Gunthorpe (jgunthorpe) wrote :

The thread-jack by Bloodyiron on 1969602 #6 is describing the same issue as here, but this is not about Alt-Tab misbehavior, that seems to be something else. None of the other focus issue seem similar.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mutter (Ubuntu):
status: New → Confirmed
Revision history for this message
Uli Franke (cls-5) wrote :

Confirming here as well. Annoying.

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.