Alt + Tab gives focus to the always-on-top window

Bug #1997099 reported by Ratchanan Srirattanamet
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mutter
Fix Released
Unknown
mutter (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

With an always-on-top window opened, Alt + Tab will, instead of giving (keyboard) focus to the chosen window, focus will go to the always-on-top window.

Reproducing steps:
1. Make sure your Ubuntu session is a Wayland session.
2. Open Firefox. Make sure it uses Wayland, launch with `env MOZ_ENABLE_WAYLAND=1 firefox`.
3. Play a YouTube video, and then clicks the Picture-in-Picture buttton.
4. Due to Wayland limitation, right-click on the PiP window and choose "Always on top".
5. Open another window of anything e.g. a terminal.
6. Press Alt + Tab to switch to the browser.

Expected result: focus goes to the browser. If on YouTube, you should be able to press '/' and cursor should go to the search box.
Actual result: focus goes to the PiP window.

This also happens if e.g. you use Alt + Shift to change keyboard languages.

The system is Ubuntu 22.04 running Gnome-shell-based, Wayland, Ubuntu session.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: gnome-shell 42.5-0ubuntu1
ProcVersionSignature: Ubuntu 5.15.0-53.59-generic 5.15.64
Uname: Linux 5.15.0-53-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Fri Nov 18 23:16:42 2022
DisplayManager: gdm3
InstallationDate: Installed on 2021-03-15 (612 days ago)
InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=th_TH.UTF-8
 SHELL=/bin/bash
RelatedPackageVersions: mutter-common 42.5-0ubuntu1
SourcePackage: gnome-shell
UpgradeStatus: Upgraded to jammy on 2022-10-22 (26 days ago)

Revision history for this message
Ratchanan Srirattanamet (peat-new) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in gnome-shell (Ubuntu):
status: New → Confirmed
tags: added: focus
Changed in gnome-shell (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Changed in mutter (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
no longer affects: gnome-shell (Ubuntu)
Changed in mutter (Ubuntu):
status: Triaged → Fix Committed
tags: added: fixed-in-mutter-43.1 fixed-upstream
Changed in mutter:
status: Unknown → Fix Released
Revision history for this message
Ratchanan Srirattanamet (peat-new) wrote :

Any chance this get backported to Ubuntu 22.04?

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

mutter (43.2-4ubuntu1) lunar; urgency=medium

Changed in mutter (Ubuntu):
status: Fix Committed → Fix Released
tags: added: rls-jj-incoming
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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