Focus constantly moves to the secondary screen upon workspace switch

Bug #2020672 reported by Pirouette Cacahuète
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mutter
Fix Released
Unknown
mutter (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I have two screen, side by side, with IDs (2) and (3) ; physically and within GNOME Control Center, the setup is as is:

 [ (3) ][ (2) ]

The Screen with identifier (2) is defined as the main screen.

My multiscreen setup in GNOME Control Center is:
 - Fixed number of workspace (12)
 - Workspaces only on main screen

The issue is that whenever I move from one workspace to the other (using keyboard shortcuts CTRL+ALT+(<-|->), the system gives focus to the secondary screen, identifier (3) above.

This is really super painful on a day-to-day basis because I spend half of my time fixing the focus and/or inputing in the wrong window. It already made me loose valuable work because of a CTRL+C in the wrong window.

As much as I can recall, this was not the behavior in previous releases.
---
ProblemType: Bug
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 23.04
InstallationDate: Installed on 2022-07-04 (324 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
NonfreeKernelModules: zen_workaround
Package: libmutter-12-0 44.0-2ubuntu4
PackageArchitecture: amd64
ProcEnviron:
 LANG=fr_FR.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
ProcVersionSignature: Ubuntu 6.2.0-20.20-generic 6.2.6
RebootRequiredPkgs: Error: path contained symlinks.
Tags: lunar wayland-session
Uname: Linux 6.2.0-20-generic x86_64
UpgradeStatus: Upgraded to lunar on 2023-04-21 (33 days ago)
UserGroups: adm cdrom dip libvirt lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True

Revision history for this message
Pirouette Cacahuète (lissyx) wrote (last edit ):

According to the upstream issue, it has been fixed by https://gitlab.gnome.org/GNOME/mutter/-/commit/0d69fabbe6895fdac31e044060ed16bd1f1c344a.

However, 23.04 mutter package is 44.0 and looking at the source, it seems the fix is there. So somehow it is not working.

summary: - Focus constantly moves to the secondary screen upon desktop switch
+ Focus constantly moves to the secondary screen upon workspace switch
Revision history for this message
Jeremy Bícha (jbicha) wrote (last edit ):

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:
apport-collect 2020672

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Revision history for this message
Pirouette Cacahuète (lissyx) wrote : Dependencies.txt

apport information

tags: added: apport-collected lunar wayland-session
description: updated
Revision history for this message
Pirouette Cacahuète (lissyx) wrote : ProcCpuinfoMinimal.txt

apport information

Changed in mutter:
status: Unknown → Fix Released
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Since the upstream bug is closed as fixed in 44.0 already we shouldn't use that upstream bug. Please report a new one at: https://gitlab.gnome.org/GNOME/mutter/-/issues

Changed in mutter:
importance: Unknown → Undecided
status: Fix Released → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Does this command resolve it?

  gnome-extensions disable <email address hidden>

If so then it would be bug 1969598.

affects: mutter → ubuntu
no longer affects: ubuntu
Changed in mutter (Ubuntu):
status: New → Incomplete
Revision history for this message
Pirouette Cacahuète (lissyx) wrote :

Thanks, I just tried and for now it does not help. The other bug mentions one might need to restart the session which I can't do at the moment but will try later.

Revision history for this message
Pirouette Cacahuète (lissyx) wrote :

Disabling this extension and logging out / logging back in, I still have the problem

Changed in mutter (Ubuntu):
status: Incomplete → Confirmed
tags: added: focus multimonitor
Revision history for this message
Pirouette Cacahuète (lissyx) wrote :

Has upstream just reverted the offending change? https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2909

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

Let's assume that's the one...

Changed in mutter (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Fix Committed
tags: added: fixed-in-mutter-45 fixed-upstream
Changed in mutter:
status: Unknown → Fix Released
Revision history for this message
Pirouette Cacahuète (lissyx) wrote :

Do you know if it's part of the lunar-updates 44.2-0ubuntu1 ? Looking at the changelog it's not clear to me.

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

The fix is only in the next version 45 at the moment.

Changed in mutter (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Pirouette Cacahuète (lissyx) wrote (last edit ):

~~Just upgraded my laptop to 23.10 release, and I can confirm the issue is STILL present. This is NOT fixed.~~

It is indeed fixed, I am now facing bug 1969598, since running `gnome-extensions disable <email address hidden>` helps.

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.