[openglean-devel]Re: A question about menu windows
Status: Beta
Brought to you by:
rkrolib
From: Richard R. <sf...@ol...> - 2005-09-15 17:04:11
|
> Is there a good reason not to allow input callbacks for menu windows > and delegate everything to the parent window? I'm not sure that I understand your question, Varol. Possibly I'm just not fully awake this morning. However, I'll try to answer it: Mouse and keyboard events should already be delegated to the parent window. Those events cannot be meaningfully registered directly on the menu window because the parent must handle them. The reason that the events get pushed from the menu window to the parent is because in some cases it seems to be *forced* to be that way, at the window system level. WIN32 behaves one way, and the UNIX_X11 branch of OpenGLEAN varies it behavior with your window manager. I would prefer to see the individual windows handle the callbacks just like non-menu top-level windows. I don't know when I might get around to trying to address this, but patches for it would be appreciated. (^& (If you're at all interested: The stay-on-top window support has code for determining the current window manager. See near the bottom of .../src/window.c in the main OpenGLEAN library.) -- "I probably don't know what I'm talking about." http://www.olib.org/~rkr/ |