Hi, I'm using Agar with a custom event loop and other OpenGL rendering in the background (used the Wiki article as a reference how to arrange it). AG_Windows are displayed and can be moved etc. but there's something wrong about the z-order.
The focused window always renders at the back, i. e. all the other windows overlay it. However, the events are delivered to the correct window. If I drag a window "behind" another one and click into the other window at a position where the focused window's frame would be, I'm effectively moving the focused window again. It seems that just the rendering is somewhat screwed up. Also the Close-/Minimize-/etc. buttons of a window are not drawn if the focused window is placed above/behind the really focused one (which should be above). That means the frame buttons behave in some way correctly... If I switch focus, the freshly focused window is "sent to back". I suppose it is related to my custom event loop or my alternate drawing but I don't know which specific part of it. I checked my code and all GL attributes and matrices seem to be pushed and popped correctly similar to the Wiki sample program. If I additionally enable the Depth-Test (when Agar's matrices etc. are loaded), the Windows all go blank, only the grey rectangles are still visible. But the z-order of the windows is correct then... What can I do about it? Tell me if you need to know something specific about my code. Best regards, Jakob _______________________________________________ Agar mailing list [email protected] http://libagar.org/lists.html
