mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
* 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:
parent
0c46bc4380
commit
85ba90244b
2 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue