Page MenuHome GnuPG

open new windows on top layer
Open, HighPublic

Description

the add-in opens its window (viewer, reencryption dialog etc.) often behind the browser. this is hard to notice, looks like nothing happened. new windows should be opened in the foreground.

Event Timeline

m.eik triaged this task as Normal priority.Jun 12 2025, 12:24 PM
m.eik created this task.

A bit tricky to fix unfortunately, making the window active is not really possible on Windows. See https://doc.qt.io/qt-6/qwidget.html#activateWindow but there seems to be some tricks one can use: https://forum.qt.io/topic/1939/activatewindow-does-not-send-window-to-front/11?_=1750663659477

I'll try some of them

m.eik raised the priority of this task from Normal to High.
m.eik added a subscriber: CarlSchwan.

Observations (confirmation wanted):

    • If no other gpgol-client Window is currently showing, the newly created window will show on top
    • With the config window showing (but nothing else)
      • clicking on reencrypt the first time will fail to bring the window to the front
      • cancel it and click on reencrypt, again -> window comes to the front
    • Similar observations when clicking on view/decrypt, reply, etc. for the first / second time.
  • Hypothesis: Windows might become whitelisted depending on their title

If only the config window is showing (important case, as it will happen, often), maybe a workaround can be to close that, first, and then open the window of interest.