## Steps to reproduce I have kwin's focus stealing prevention is enabled and set to "Low". When I type "git push" in Konsole and access to the repository needs an SSH key, ksshaskpass fires up to get my SSH key unlocked. ksshaskpass first opens the wallet to see if my password is stored there. ## Actual behavior The KWallet window asking for my wallet password is opened in the background. ## Expected behavior The window should open in the foreground. This is problematic enough that I end up disabling focus stealing prevention, even though in many other cases I would actually love to have it enabled. I am going to try and work around this using window-specific rules, but something like this seems like it should work out-of-the-box.
KWallet needs to set the correct hints to the window manager so that it does not think it's trying to steal focus.
Is there a KWindowSystem function for setting this hint? I only found forceActiveWindow() which is documented to bypass the stealing prevention.
Related to Bug 141267, maybe a duplicate.