Query mouse events from other Windows/Screens

2005-08-04 Thread George Liu
I would like to write an application that would collect mouse events (Button Press/Release) among all windows/screens in the same desktop, and display the event info on a dedicated window. I used the following two methods but none worked. Your help is appreciated. Method 1: d =

Re: Query mouse events from other Windows/Screens

2005-08-04 Thread Andrew C Aitchison
On Thu, 4 Aug 2005, George Liu wrote: I would like to write an application that would collect mouse events (Button Press/Release) among all windows/screens in the same desktop, and display the event info on a dedicated window. I used the following two methods but none worked. Your help is

Re: Query mouse events from other Windows/Screens

2005-08-04 Thread George Liu
Hi Andrew, Thanks for your reponse. This was exactly my thought in method 1. I assume window root root = RootWindow(d,s); is the invisble window covering the whole screen. Is that right? Thanks. --George Andrew C Aitchison wrote: On Thu, 4 Aug 2005, George Liu wrote: I would like to

Re: Query mouse events from other Windows/Screens

2005-08-04 Thread Tim Roberts
George Liu wrote: Hi Andrew, Thanks for your reponse. This was exactly my thought in method 1. I assume window root root = RootWindow(d,s); is the invisble window covering the whole screen. Is that right? Thanks. No. That's the visible window that always exists at the BACK of the

Re: Query mouse events from other Windows/Screens

2005-08-04 Thread George Liu
OK. Now created a new window w by something like, w = XCreateWindow(d, root, 0,0, 1024, 500,0,0,InputOnly, (Visual *) CopyFromParent, valuemask, attributes ); XMapWindow(d, iw); Then it obscures the other windows. Thanks for your reponse. This was exactly my thought in method 1. I assume