Root window events

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

User avatar
BradDaBug
Not too shy to talk
Not too shy to talk
Posts: 23
Joined: Sat Apr 09, 2005 00:56

Root window events

Postby BradDaBug » Tue Jun 27, 2006 02:44

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.

MacMan45
Just popping in
Just popping in
Posts: 19
Joined: Mon Apr 24, 2006 10:33

Postby MacMan45 » Sat Jul 01, 2006 12:14

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 :)


Return to “Help”

Who is online

Users browsing this forum: No registered users and 10 guests