Bug 2210556 - New windows launched from shell overview do not have focus in most cases
Summary: New windows launched from shell overview do not have focus in most cases
Keywords:
Status: CLOSED DUPLICATE of bug 2188695
Alias: None
Product: Fedora
Classification: Fedora
Component: mutter
Version: 38
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Florian Müllner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-28 14:04 UTC by Daniel Rusek
Modified: 2023-06-07 13:56 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-06-07 13:56:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
No focus on newly opened Terminal window (25.23 KB, image/png)
2023-05-28 14:06 UTC, Daniel Rusek
no flags Details

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 ***


Note You need to log in before you can comment on or make changes to this bug.