J
J
jtag2019-10-22 07:11:21
linux
jtag, 2019-10-22 07:11:21

How to direct the input stream from the keyboard only to the required process?

How to direct the input stream from the keyboard only to the required process or file? i.e., disable the ability to print the keyboard where the mouse focus is.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-10-22
@msa6886

Xorg passes the input stream to the window manager, the window manager processes global keys and passes to the active window, the active window processes its keys and passes to the active element. If the required process needs to capture the thread constantly - even when its window is not active - then it should connect directly to the event source /dev/input/event[0..100] . In principle, you can tell Xorg that it does not have any keyboard if the application takes data from the device event source. To take data from the event source, superuser rights are required for obvious security reasons.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question