Bug 478171 - When clicking on the shortcut on the taskbar opens the last opened window
Summary: When clicking on the shortcut on the taskbar opens the last opened window
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: 5.27.10
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-06 15:43 UTC by Alex Sh
Modified: 2023-12-07 22:59 UTC (History)
4 users (show)

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


Attachments
screencast of the bug (3.63 MB, video/mp4)
2023-12-06 15:43 UTC, Alex Sh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Sh 2023-12-06 15:43:42 UTC
Created attachment 163948 [details]
screencast of the bug

SUMMARY
Clicking on the shortcut on the taskbar opens the last opened window, not the window of the application whose shortcut I clicked


STEPS TO REPRODUCE
1. Open a few windows
2. Go to some of them
3. Go to Desktop pressing Meta+D or clicking on such plasmoid
4. Click shortcut of some other app

OBSERVED RESULT
The last open window opens

EXPECTED RESULT
The window of the application whose shortcut I clicked opens

SOFTWARE/OS VERSIONS
OS: Arch Linux (EndeavourOS)
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.112.0
Qt Version: 5.15.11
Graphic Platform: X11
Comment 1 Niccolò Venerandi 2023-12-06 16:31:10 UTC
I'm afraid I cannot reproduce here :-/
Comment 2 Жора Змейкин 2023-12-07 12:51:03 UTC
I managed to reproduce the bug on Plasma 5.27.10 c X11, the problem is related to the desktop display mode by pressing Meta + D. Pressing Meta + D hides all windows (showing the desktop), and when you try to switch to some other window, Plasma exits desktop display mode, but does not switch to the desired window.

I was able to reproduce this bug on EndeavourOS 5.27.10 with X11, but was unable to reproduce it on Plasma 6.0 in KDE Neon.

The steps to reproduce the bug are a bit unclear in the original bug report, so here is a specific example:
1. Open any two programs, such as Dolphin and Konsole.
2. Right now we have Konsole open in the foreground, memorize that.
3. Press Meta + D to show the desktop.
4. Click on the Dolphin icon in the taskbar and we can see that Plasma exits desktop display mode. But instead of Dolphin, we still have Konsole in the foreground. 

Again, this bug is not reproduced in Plasma 6.0 with KDE Neon (I checked on X11 and Wayland), so it is probably fixed and the bug report can be closed.
Comment 3 Жора Змейкин 2023-12-07 13:22:16 UTC
I have tested, this bug only occurs in Plasma 5.27 in a Xorg session. It does not occur in a Wayland session. In Plasma 6.0 the bug does not appear either (both in X11 and Wayland). I checked in EndeavourOS and KDE Neon.
Comment 4 Nate Graham 2023-12-07 22:59:23 UTC
Great, then let's call it fixed already! :) Thanks for testing so exhaustively