Bug 384935 - Focus stealing prevention keeps KWallet window in background
Summary: Focus stealing prevention keeps KWallet window in background
Status: REPORTED
Alias: None
Product: frameworks-kwallet
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Valentin Rusu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-21 14:47 UTC by Ralf Jung
Modified: 2022-09-06 14:31 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Jung 2017-09-21 14:47:04 UTC
## 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.
Comment 1 Martin Flöser 2017-09-21 16:05:09 UTC
KWallet needs to set the correct hints to the window manager so that it does not think it's trying to steal focus.
Comment 2 Christoph Feck 2017-10-04 13:45:51 UTC
Is there a KWindowSystem function for setting this hint? I only found forceActiveWindow() which is documented to bypass the stealing prevention.
Comment 3 michaelk83 2022-09-06 14:31:53 UTC
Related to Bug 141267, maybe a duplicate.