Is there an equivalent to the BlockInput() Windows function for X11? -


in windows, blockinput() function instructs os globally block mouse , keyboard input gui applications, including other processes, not application's own process.

from windows docs blockinput():

blocks keyboard , mouse input events reaching applications. when input blocked, real physical input mouse or keyboard not affect input queue's synchronous key state (reported getkeystate , getkeyboardstate), nor affect asynchronous key state (reported getasynckeystate). however, thread blocking input can affect both of these key states calling sendinput. no other thread can this.

is there way application can block mouse , keyboard input reaching other gui applications in same x-server session.

if want launch program no input, can shell this:

program </dev/null

if want programmatically same thing need open handle /dev/null yourself, fork() program, use dup2() reassign input , output handles /dev/null handle, exec() child program.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -