Re: X events from all windows

2004-08-01 Thread Shachar Shemesh
Tzafrir Cohen wrote: As usual, any RTFM would be welcome. I already tried choo's guide, which was useful for getting started, BTW. Then can you give a link, please? Shachar -- Shachar Shemesh Lingnu Open Source Consulting ltd. http://www.lingnu.com/

Re: X events from all windows

2004-08-01 Thread amos
It's been a while since I last touched this but I suspect you'd have to have an invisible window on top of the entire display to catch all events and pass them on. I think this is the way spyware for X11 used to be done. Tzafrir Cohen wrote: Hi folks I'm trying to write a small X11 client that

Re: X events from all windows

2004-08-01 Thread ik
Hi, Two thigs: 1. Original Events have also the Handle of the window who cuse the event. 2. you have two events of Focus in X itself: typedef XFocusChangeEvent XFocusInEvent; typedef XFocusChangeEvent XFocusOutEvent; for the code that works for me more or less... :)

Re: X events from all windows

2004-08-01 Thread Tzafrir Cohen
On Sun, Aug 01, 2004 at 12:21:43PM +0300, ik wrote: Hi, Two thigs: 1. Original Events have also the Handle of the window who cuse the event. 2. you have two events of Focus in X itself: typedef XFocusChangeEvent XFocusInEvent; typedef XFocusChangeEvent XFocusOutEvent; for

Re: X events from all windows

2004-08-01 Thread Tzafrir Cohen
On Sun, Aug 01, 2004 at 09:08:58AM +0300, [EMAIL PROTECTED] wrote: It's been a while since I last touched this but I suspect you'd have to have an invisible window on top of the entire display to catch all events and pass them on. I think this is the way spyware for X11 used to be done. So

Re: X events from all windows

2004-08-01 Thread Tzafrir Cohen
On Sun, Aug 01, 2004 at 08:55:22AM +0300, Shachar Shemesh wrote: Tzafrir Cohen wrote: As usual, any RTFM would be welcome. I already tried choo's guide, which was useful for getting started, BTW. Then can you give a link, please? I'm on a slow connection here. It should be something

Re: X events from all windows

2004-08-01 Thread ik
Hi, On Sunday 01 August 2004 15:34, Tzafrir Cohen wrote: On Sun, Aug 01, 2004 at 12:21:43PM +0300, ik wrote: Hi, Two thigs: 1. Original Events have also the Handle of the window who cuse the event. 2. you have two events of Focus in X itself: typedef XFocusChangeEvent

Re: X events from all windows

2004-08-01 Thread amos
Tzafrir Cohen wrote: On Sun, Aug 01, 2004 at 09:08:58AM +0300, [EMAIL PROTECTED] wrote: It's been a while since I last touched this but I suspect you'd have to have an invisible window on top of the entire display to catch all events and pass them on. I think this is the way spyware for X11

Re: X events from all windows

2004-08-01 Thread ik
On Sunday 01 August 2004 16:30, [EMAIL PROTECTED] wrote: Tzafrir Cohen wrote: On Sun, Aug 01, 2004 at 09:08:58AM +0300, [EMAIL PROTECTED] wrote: It's been a while since I last touched this but I suspect you'd have to have an invisible window on top of the entire display to catch all

X events from all windows

2004-07-31 Thread Tzafrir Cohen
Hi folks I'm trying to write a small X11 client that will be notified whenever a window loses the input focus and whenever a window gains the input focus? My best effort so far is: XSelectInput(display, root_win, FocusChangeMask ); ... while (!done) { XNextEvent(display, an_event);