i write a little programm, which checks, if a user is sitting in front of his computer or not.
Now i want to find out, how long the user is idle, means how long no input has been made.
Any suggestions how to solve this problem in C?
I really dont have an idea where to start, maybe with the x-Window api or so...
I hope you are able to help me. Thank you.