[PATCH] pinentry-gtk-2: Fix ERROR: could not grab keyboard
sochotnicky at redhat.com
Tue Apr 27 17:26:09 CEST 2010
On 04/27/2010 04:36 PM, Stanislav Ochotnicky wrote:
> This patch adds 50ms timer before actually trying to grab
> keyboard. Simple tests showed that this is enough to fix grabbing
> failure and 50ms should be fast enought to prevent sniffing of
> keyboard input.
Now that I think about it...maybe it would be best if we kept trying to
grab keyboard every X ms until we get it? Meanwhile if pinentry is
configured to use global grab and we don't have it yet, display BIG RED
WARNING. pinentry is not long running application so this should not
have that significant impact on performance...what do you think?
Stanislav Ochotnicky <sochotnicky at redhat.com>
Associate Software Engineer - Base Operating Systems Brno
Mobile: +420 775 633 759
Red Hat Inc. http://cz.redhat.com
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 198 bytes
Desc: OpenPGP digital signature
More information about the Gpa-dev