nanogui: events and parent/child windows
Subject:
events and parent/child windows
From:
tj ####@####.####
Date:
22 Nov 2005 00:27:34 +0000
Message-Id: <43826600.2090906@comcast.net>
Along the same line of parent/child windows I noticed something that
confuses me.
If I have
parent = GrNewWindow(GR_ROOT_WINDOW_ID, ....);
child1 = GrNewWindow(parent ....);
child2 = GrNewWindow(parent ....);
GrMapWindow(child1);
GrMapWindow(child2);
GrMapWindow(parent);
GrSetFocus(parent);
And all seems fine until I enter keystrokes. The keystrokes seem to go
to the window that the mouse is hovering over. If the pointer is over
child1, and HAS NOT BEEN clicked, the keystroke events go to child1. If
I move the mouse to h0ver over child2, the mouse events go to child2.
Why are they not going to parent who has the focus? If the mouse is
hovering over parent or of off all those windows, parent gets the keystroke.
Also, clicking the mouse over a child causes btoh the child AND the
parent to get a button up event.
tj