Bug 470631 - [Wayland] Popup window fails to steal focus for main window in Task Manager
Summary: [Wayland] Popup window fails to steal focus for main window in Task Manager
Status: RESOLVED DUPLICATE of bug 486461
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (show other bugs)
Version: 5.27.5
Platform: Other Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2023-06-04 15:19 UTC by medin
Modified: 2024-07-22 21:49 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Wayland (664.09 KB, video/mp4)
2023-06-04 15:19 UTC, medin
Details
X11 (655.01 KB, video/mp4)
2023-06-04 15:20 UTC, medin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description medin 2023-06-04 15:19:42 UTC
Created attachment 159462 [details]
Wayland

On wayland, if you open two applications (app1 and app2), if you launch a long operation on app1 then switch to app2, in this case the Task Manager is focused on app2, if any warning/error/information popup window appears from app1, then a new entry is added to Task Manager and both the popup with its main app1 window are forced to show at top, but when you close the popup you will see that the main window of app1 is the one showing but the one selected in Task Manager is app2. 

On X11 the popup doesn't force any show at top (the entry of app1 in Task Manager simply blinks), and doesn't create any new entry. So if you click on app1 entry and then you close the popup the app1 window remains showing and at the same selected in Task Manager.

See attached video for both X11 and Wayland for more information.
Comment 1 medin 2023-06-04 15:20:31 UTC
Created attachment 159463 [details]
X11
Comment 2 Nate Graham 2023-06-05 17:41:31 UTC
Interesting. Does it affect any other apps you can try? Or is it just that one shown in the screen recording?
Comment 3 medin 2023-06-06 10:25:20 UTC
(In reply to Nate Graham from comment #2)
> Interesting. Does it affect any other apps you can try? Or is it just that
> one shown in the screen recording?

After testing some apps, it happens with any Eclipse based app like DBeaver, Oomph... and also with Qt apps like KRDC (vnc viewer), in general with any app that performs a long task and can finish or stop by showing a popup dialog.

Here we have two cases: 

1) with modal popup it creates a new entry in Task Manager and is automatically selected, and also brings its main window with it, and after closing the popup the main window keeps showing at top while the wrong entry is selected in Task Manager.

2) while non modal popup creates a new entry in Task Manager and is also automatically selected, but it appears alone without its main window, and after closing the popup the focus in Task Manager return to the previous selected app.
Comment 4 Nate Graham 2023-06-06 15:18:27 UTC
Cool, thanks for testing.
Comment 5 Patrick Silva 2024-07-13 15:00:23 UTC
Possibly duplicate of bug 486461
Comment 6 Nate Graham 2024-07-22 21:49:36 UTC
It would appear so, yeah. Thanks.

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