I have yakuake-frameworks-git installed from AUR. I set it to retract when it loses focus. Pressing F12 correctly opens the program but pressing F12 again doesn't retract it. What happens is that it seems to retract and open again so quickly that it is barely noticeable. This only happens if I choose the option for the window manager (kwin_x11) to perfom the animation.
I've seen that two where pressing F12 sometimes doesn't bring it to the front if it's still opened, or not retracting and expanding it right away, or it not closing when it loses focus, etc. It has improved quite a lot recently but is still glitchy at times.
There's also the whole thing where it will close and open again when you do it while the cursor is inside the window. There's definitely something buggered there - but please do keep in mind it's an unreleased git branch version. I just haven't had any time to polish it up so far.
Same thing here in a plain installation of plasma 5.4 on archlinux. Is there any workaround? (i really use a lot yakuake, and its quite annoing when it does not hide)
Confirmed on Chakra with plasma 5.4 and yakuake with latest git branch=frameworks. You can open yakuake with F12 correctly, but if the mouse is inside the yakuake window can't be closed with F12, I have to move the mouse outside the window and then it works.
I add one more thing that can help to isolate the problem, this issue happens only when the option "keep window open when it loses focus" is not active.
I put some debug lines in the toggleWindowState and changeEvent. What happens his that F12 triggers both at the same time. So it hides and then shows again it directly. Also when it seems to work, hiding the window (with F12) does: 1) activationChange: hide 2) F12 captured: show 3) activationChange: hide >>> So it's hidden. "keep window open when it loses focus" is not active: 1) activationChange: hide 2) F12 captured: show >>> So it's still visible.
I think this bug is a duplicate of bug 336228 (or reciprocally, the bug triagers can keep the one with the most useful debugging info/bug diagnostic).
*** This bug has been marked as a duplicate of bug 336228 ***