Bug 2210556

Summary: New windows launched from shell overview do not have focus in most cases
Product: [Fedora] Fedora Reporter: Daniel Rusek <drusek>
Component: mutterAssignee: Florian Müllner <fmuellner>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 38CC: fmuellner, gnome-sig, jadahl, mail, mihai, otaylor, philip.wyett, walters
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-07 13:56:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
No focus on newly opened Terminal window none

Description Daniel Rusek 2023-05-28 14:04:19 UTC
This is already reported in upstream (see the link in Additional Information), however I am also reporting it in downstream since it can be considered as a possible security issue.

When a new app window is opened from shell overview, focus is in most cases not properly given to the new window and user input still goes to the old focused window. Both windows appear to be in focus, however, the old window has the proper focus.

This is a potential security issue that almost made me type my password and other sensitive data into Slack/IRC instead of terminal multiple times.

Reproducible: Sometimes

Steps to Reproduce:
1. Use latest, fully updated Fedora Workstation 38 system.
2. Open shell overview (super key).
3. Run the "Terminal" app either by using mouse or keyboard.
4. See if the newly opened window has focus.

Actual Results:  
See the attached screenshot. It happens very often.

In some apps (for example the new GNOME "Console" app), there is even no indication that the window does not have focus. (See the screencast in linked upstream ticket.)

Expected Results:  
The newly opened window has focus.

https://gitlab.gnome.org/GNOME/mutter/-/issues/2690

Comment 1 Daniel Rusek 2023-05-28 14:06:18 UTC
Created attachment 1967548 [details]
No focus on newly opened Terminal window

Comment 2 Daniel Rusek 2023-06-02 10:24:09 UTC
Temporary downstream solution could be reverting the commit that caused this regression: https://gitlab.gnome.org/GNOME/mutter/-/commit/3ac82a58c51a5c8db6b49e89a1232f99c79644cc

It is not ideal (see the comments in upstream ticket), but would be better than the current situation, at least in my opinion.

Comment 3 Daniel Rusek 2023-06-07 13:56:19 UTC
Same issue as already reported BZ#2188695. Closing this ticket.

*** This bug has been marked as a duplicate of bug 2188695 ***