Author: gcasa
Date: Sat Jan 16 20:56:27 2010
New Revision: 29295

URL: http://svn.gna.org/viewcvs/gnustep?rev=29295&view=rev
Log:
        * Source/NSWindow.m: Don't use the flags for key/main window tracking.
        These flags are getting out of sync due to different behavior on
        different backends.  Also, it's better to keep the state in one place
        instead of keeping them in sync.  I changed all of the instances of
        _f.is_key to [self isKeyWindow] and all of the instances of _f.is_main
        to [self isMainWindow] and those methods now check with NSApp to 
        determine if the current window is main.   I realize this is slower
        than the previous method of using flags, but it is also more resilient
        and reliable when the backend sends extra events.  This corrects the
        issue on Windows where we were losing the main window and had two 
        windows marked as "main".

Modified:
    libs/gui/trunk/ChangeLog
    libs/gui/trunk/Source/NSWindow.m


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to