Fix resizing mode by fixing initialization order.

This commit is contained in:
Riccardo Mottola 2022-03-31 22:58:02 +02:00
parent fa1369cb64
commit 96db5bf89c
2 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2022-03-31 Riccardo Mottola <rm@gnu.org>
* Source/GSStandardWindowDecorationView.m:
Fix resizing mode by fixing initialization order.
2022-03-29 Gregory John Casamento <greg.casamento@gmail.com>
* Headers/Additions/GNUstepGUI/GSXibKeyedUnarchiver.h

View file

@ -319,15 +319,13 @@ calc_new_frame(NSRect frame, NSPoint point, NSPoint firstPoint,
NSEvent *currentEvent = event;
NSDate *distantPast = [NSDate distantPast];
NSDate *distantFuture = [NSDate distantFuture];
NSPoint firstPoint, point;
NSPoint firstPoint = [event locationInWindow];
NSPoint point;
NSRect newFrame, frame;
NSSize minSize, maxSize;
int num = 0;
GSResizeEdgeMode mode = [self resizeModeForPoint: firstPoint];
firstPoint = [event locationInWindow];
frame = [window frame];
minSize = [window minSize];
maxSize = [window maxSize];