Page 1 of 1

Root window events

Posted: Tue Jun 27, 2006 02:44
by BradDaBug
I need to perform a certain action when the user clicks or moves the mouse over the root window, but I don't need that action to occur if the user actually clicked or moved in a window that was on top of the root window. It looks like my root window is getting events even when that happens. Is there any way to make the root window just fire events when the mouse is interacting with it instead of a window on top of it?

Edit: Actually, the only real problem seems to be with the menubar. Other child windows work the way I want them to.

Posted: Sat Jul 01, 2006 12:14
by MacMan45
Not sure if its the right way, but in the child windows, subscribe to the click event & then pass it to a do nothing handler that returns true ;)

It works for me :)