Home GnuPG

qt: Clean up foreground window code

Description

qt: Clean up foreground window code

* qt/main.cpp (ForeignWidget): Remove. This did nothing
with Qt 5.
(setup_foreground_window): New helper to set parent and
window flags.
(qt_cmd_handler): Use setup_foreground_window.
* qt/pinentrydialog.cpp: Disable Windows API hacks.

This should hopefully work a bit cleaner then the old code.
Setting us as transient to the Desktop is the same what
Gtk 2 does.

Details

Provenance
aheineckeAuthored on Feb 28 2018, 12:05 PM
Parents
rP822c66815b50: tqt: use UTF-8 instead of ISO-8859-1
Branches
Unknown
Tags
Unknown