bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindow's frame is not properly updated after resizing


From: Adam Fedor
Subject: Re: NSWindow's frame is not properly updated after resizing
Date: Tue, 19 Mar 2002 13:14:45 -0700
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.7) Gecko/20020120

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]