Pierre-Yves Rivaille wrote:

> When you resize a window, the frame origin is not updated and that leads 
> to an inconsistent state for the _frame ivar.
> You can easily reproduce it by just resizing a window and logging its 
> frame.
> 
> I have made a quick patch so solve the issue. However, i'd like someone 
> more knowledgable in X programming and xgps internals to review and 
> correct it.
> Here is my patch:
> <XGContextEvent.m.patch>
> 


It's intersting to note that a resize event will almost always move the 
frame origin (since resizes bars are always on the bottom, left or right 
side.) The problem is your patch will cause a WindowMoved event, which 
we don't want to happen. The real problem is that there aren't enough 
fields in the event structure to pass back the the new origin. I hacked 
the source to pass the origin back in the eventLocation field, which 
doesn't see too unusual.

Thanks for pointing this out.




-- 
Adam Fedor, Digital Optics Corp.      | I'm glad I hate spinach, because
http://www.doc.com                    | if I didn't, I'd eat it, and you
                                       | know how I hate the stuff.


_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to