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
I'm afraid I cannot reproduce here :-/
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.
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.
Great, then let's call it fixed already! :) Thanks for testing so exhaustively