How completely block the keyboard (temporarily)?

Carsten Haitzler (The Rasterman) raster at rasterman.com
Sat Apr 12 17:27:32 PDT 2008


On Sat, 12 Apr 2008 21:14:59 -0300 "Wesley :}" <wesleyhg at gmail.com> babbled:

> Good evening,
> I am making an application that needs to temporarily block (to make an
> electronic transfer of funds), the laws here in Brazil say that this type of
> software the keyboard should be blocked or disabled for the user throughout
> the transfer of funds, I can do this using any function or modification of
> X.org? How?
> Thanks to all

1. XGrabKeyboard()
2. ignore ALL key press/release events with the "send_event" flag set to 1.
3. make sure your xserver does not have the xtest extension enabled.

boa sorte :)

-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    raster at rasterman.com




More information about the xorg mailing list