Page MenuHome GnuPG

pinentry-qt window is not parented to Kleopatra on Wayland
Testing, NormalPublic


  • Plug in Yubikey
  • In Kleopatra go to "Smartcards"
  • Click e.g. "Change PIN"

A window from pinentry(-qt) appears asking for the PIN. This window isn't parented to Kleopatra, so it can disappear behind the Kleopatra window, isn't centered in it etc.

This works as expected on X11.

Since kleo and pinentry are separate processes this can be achieved using the xdg-foreign Wayland protocol

Related Objects

Event Timeline

aheinecke triaged this task as Normal priority.
aheinecke added projects: Restricted Project, kleopatra.
aheinecke added a subscriber: aheinecke.

Awesome, thanks for the report 👍

It doesn't actually work as expected on X11. There pinentry uses the NET::KeepAbove window flag to make the pinentry window stay on top of Kleopatra.

Instead on X11 and Wayland there should be a transient parent relationship between Kleopatra and pinentry(-qt)

TobiasFella moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Jan 23 2024, 11:41 AM
TobiasFella changed the task status from Open to Testing.Feb 15 2024, 9:03 AM