Desktop Icons NG steals keyboard focus from apps after workspace switch

Bug #1969598 reported by Sergey Ivanov
62
This bug affects 13 people
Affects Status Importance Assigned to Milestone
GNOME Shell
New
Unknown
Gnome Shell Extension Desktop Icons Ng
New
Unknown
gnome-shell (Ubuntu)
Confirmed
Undecided
Unassigned
gnome-shell-extension-desktop-icons-ng (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Steps to reproduce:

1) Setup at least two workspaces.

2) open at least one GUI application on one of them. Another one is focused and no application opened.

3) switch workspaces from 'empty' to 'with application'

Expected result: last focused GUI application from the new focused workspace will be auto-focused again. And all shortcuts right after the switch will be applicable to a given application.

Actual result: application is not focused, all shortcuts are applicable to desktop only.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: gnome-shell 42.0-2ubuntu1
ProcVersionSignature: Ubuntu 5.15.0-25.25-generic 5.15.30
Uname: Linux 5.15.0-25-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Wed Apr 20 12:17:48 2022
DisplayManager: gdm3
RelatedPackageVersions: mutter-common 42.0-3ubuntu2
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)

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

This might have the same root cause as bug 1928317.

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
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I can't seem to reproduce the problem myself...

Please try disabling the 'Desktop Icons NG' extension in the Extensions app (may require logging in again) and then tell us if the bug persists.

tags: added: focus
Revision history for this message
Joolz (joolz) wrote :

@daniel thanks for the tip!

Disabling seems to solve the focus issue, but now there's no more desktop icons (duh :) )

Personally I use the desktop icons all the time, anything that needs immediate attention goes to the desktop, disabling that would (for me) not be a workaround, but a choice between two evils.

If 'Desktop Icons NG' is the root of the issue, maybe the ticket should be filed there?

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

Sounds like a tricky problem because Desktop Icons NG is itself an application that is allowed to take focus (when appropriate).

Changed in gnome-shell-extension-desktop-icons-ng (Ubuntu):
status: New → Confirmed
Revision history for this message
Joolz (joolz) wrote :

Then somehow in between 21.10 and 22.04 there was a change in the behaviour of Desktop Icons NG, as in: when is grabbing focus appropriate.

If the new behaviour is preferred by the author, it would be nice for the end-user to have the option to toggle between the old and the new behaviour.

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

I doubt the new behaviour is preferred by the author or anyone. Seems like a mistake. Please report it to: https://gitlab.com/rastersoft/desktop-icons-ng/-/issues

no longer affects: gnome-shell (Ubuntu)
summary: - no auto-focus application after workspace switch
+ Desktop Icons NG steals keyboard focus from apps after workspace switch
Revision history for this message
Joolz (joolz) wrote :

@daniel: thanks for the link, bug filed: https://gitlab.com/rastersoft/desktop-icons-ng/-/issues/235

Changed in gnome-shell (Ubuntu):
status: New → Confirmed
Changed in gnome-shell:
status: Unknown → New
Changed in gnome-shell-extension-desktop-icons-ng:
status: Unknown → New
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.