Added change which will help when Alex M. makes his window decoration changes.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@19532 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-06-16 01:26:41 +00:00
parent db62ca916d
commit 85f61b6056
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2004-06-15 01:28 Gregory John Casamento <greg_casamento@yahoo.com>
* GormPalettesManager.m: [GormPalettesManager mouseDown:] a
call to convertRect:toView: was added to correctly translate the
view being dragged in all cases. This will show no real benefit
until Alex M. adds the window decoration patches.
2004-06-10 01:28 Gregory John Casamento <greg_casamento@yahoo.com> 2004-06-10 01:28 Gregory John Casamento <greg_casamento@yahoo.com>
* Gorm.m: [Gorm testInterface] added code in the exception * Gorm.m: [Gorm testInterface] added code in the exception

View file

@ -173,7 +173,8 @@ static NSImage *dragImage = nil;
control (like the contentView of an NSBox) */ control (like the contentView of an NSBox) */
while (view != nil && [view superview] != self) while (view != nil && [view superview] != self)
view = [view superview]; view = [view superview];
rect = [view frame]; rect = [[view superview] convertRect: [view frame]
toView: nil]; // this will always get the correct coordinates...
if (active == nil) if (active == nil)
{ {