Hiding keyboard state

Keith Packard keithp at keithp.com
Mon Jun 20 18:32:05 UTC 2016


Ran Benita <ran234 at gmail.com> writes:

> The QueryDeviceState request from xinput (XQueryDeviceState(3) in xlib)
> also exposes the logical state of the keys. This patch only touches the
> old QueryKeymap request. Is xinput not relevant for some reason? (There
> might also be similar request in xinput2 and XKB, I haven't checked).

I just hadn't thought of that, but yes, it's relevant. One simple answer
would be to always lie about this request (report no keys down
ever).

Alternatively, we could restrict this request to "special" applications
using the technique I've outlined for access to the testing extensions.

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg-devel/attachments/20160620/fc04270e/attachment.sig>


More information about the xorg-devel mailing list