* Source/NSView.m (-_rebuildCoordinates): Use simple path only

when both window and superview are nil. Set the visibleRect in
this case to bounds.
This commit is contained in:
fredkiefer 2018-01-07 16:47:36 +01:00
parent 0c46bc4380
commit 85ba90244b
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2018-01-07 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSView.m (-_rebuildCoordinates): Use simple path only
when both window and superview are nil. Set the visibleRect in
this case to bounds.
2018-01-07 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSApplication.m (-targetForAction:to:from:): Return nil

View file

@ -290,9 +290,9 @@ GSSetDragTypes(NSView* obj, NSArray *types)
_coordinates_valid = YES;
_rFlags.flipped_view = isFlipped;
if (!_window)
if (!_window && !_super_view)
{
_visibleRect = NSZeroRect;
_visibleRect = _bounds;
[_matrixToWindow makeIdentityMatrix];
[_matrixFromWindow makeIdentityMatrix];
}