Non Root

Asked by Think-Free

When running the example as root I receive all the events but when running as user, I didn't receive anything

Question information

Language:
English Edit question
Status:
Answered
For:
Geis Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Stephen M. Webb (bregma) said :
#1

Which example?

Revision history for this message
Think-Free (think-free) said :
#2
Revision history for this message
Stephen M. Webb (bregma) said :
#3

Ah, the default if there is no filter on window_id specified is to subscribe to event on the X11 root window. The X11 server will not let just anyone grab all input events on all windows (that's a pretty clear security violation), so to run that example code yes, you would need elevated privileges.

If you filter on a window_id, that problem would go away. Adding the code in the example to allow a window_id to be specified on the command line, with all the attendant parsing and error detection, distracted from the purpose.

Revision history for this message
Think-Free (think-free) said :
#4

OK ! Understood !
Thanks !

(PS : Documentation needs improvments ;) )

Can you help with this problem?

Provide an answer of your own, or ask Think-Free for more information if necessary.

To post a message you must log in.