When I do 'Show Desktop' (Ctrl-F12), all windows disappear and the desktop with widgets is shown. When I return (press Ctrl-F12 again), all windows are shows just as they were when I went to the desktop --- except that the window that was focussed earlier, is not focussed. Anything I type goes to krunner (it starts on its own). Reproducible: Always Steps to Reproduce: 1. Working in Kwrite (so it has the focus), two other windows are open but are not focussed. 2. Ctrl-F12 - windows disappear. Desktop is shown 3. Ctrl-F12 - windows reappear. But Kwrite is not focussed. 4. Start typing, krunner opens and gets all the keystrokes Actual Results: On coming back from 'Show desktop' focus is lost from the window that was focussed earlier. If you start typing, krunner starts on its own and grabs all keystrokes. Expected Results: The window that was focussed earlier should get the focus back.
This bug still exists in Plasma 5.8.0 LTS. It would be nice to see this fixed.
Created attachment 106410 [details] showdesktop.patch I had the same problem (Gentoo, Plasma 5.8.6). Attached patch for kde-plasma/kwin-5.8.6 fixes the problem for me. (Patch note: I just stuck together some bits of code from elsewhere in file. Could mess something else.)
This no longer appears to be an issue today.