Mailing List Archive

[PATCH] efl: ensure pinentry window is activated
This ensure the new window displayed on screen is grabbed/focused and
PIN is entered in the newly created window rather than shell or
application with active focus which can lead to accidental PIN leak.
---
efl/pinentry-efl.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/efl/pinentry-efl.c b/efl/pinentry-efl.c
index f1fb8b8149f8..2231b70a5c9e 100644
--- a/efl/pinentry-efl.c
+++ b/efl/pinentry-efl.c
@@ -542,11 +542,13 @@ create_window (void)
evas_object_show (obj);

elm_win_resize_object_add(win,obj);
- evas_object_show(win);

if(entry)
elm_object_focus_set (entry, EINA_TRUE);

+ evas_object_show(win);
+ elm_win_activate(win);
+
if (pinentry->timeout > 0)
timer = ecore_timer_add (pinentry->timeout,
(Ecore_Task_Cb)timeout_cb,

_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-devel
Re: [PATCH] efl: ensure pinentry window is activated [ In reply to ]
Hi,

On Sat, Feb 13, 2021 at 04:09:38PM +0000, Bertrand Jacquin wrote:
>This ensure the new window displayed on screen is grabbed/focused and
>PIN is entered in the newly created window rather than shell or
>application with active focus which can lead to accidental PIN leak.

Merged, thanks!

Cheers,

- Damien