* Headers/Additions/GNUstepGUI/GSWindowDecorationView.h:

Move new addon methods for Wayland to correct class
GSStandardWindowDecorationView.
* Source/GSWindowDecorationView.m: Keep variables declarations together.
This commit is contained in:
Fred Kiefer 2021-12-28 17:23:48 +01:00
parent bc9d477a9f
commit b84d8cc3fd
3 changed files with 12 additions and 5 deletions

View file

@ -1,3 +1,10 @@
2021-12-28 Fred Kiefer <FredKiefer@gmx.de>
* Headers/Additions/GNUstepGUI/GSWindowDecorationView.h:
Move new addon methods for Wayland to correct class
GSStandardWindowDecorationView.
* Source/GSWindowDecorationView.m: Keep variables declarations together.
2021-12-26 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSPopUpButtonCell.m: Try to prevent segmenation fault

View file

@ -48,10 +48,6 @@ typedef enum _GSResizeEdgeMode {
styleMask: (NSUInteger)aStyle;
- (CGFloat) minFrameWidthWithTitle: (NSString *)aTitle
styleMask: (NSUInteger)aStyle;
- (BOOL) pointInContentRect:(NSPoint)point;
- (BOOL) pointInTitleBarRect:(NSPoint)point;
- (BOOL) pointInResizeBarRect:(NSPoint)point;
- (GSResizeEdgeMode) resizeModeForPoint:(NSPoint)point;
@end
@ -125,6 +121,10 @@ Standard OPENSTEP-ish window decorations.
NSButton *closeButton, *miniaturizeButton;
}
- (BOOL) pointInContentRect:(NSPoint)point;
- (BOOL) pointInTitleBarRect:(NSPoint)point;
- (BOOL) pointInResizeBarRect:(NSPoint)point;
- (GSResizeEdgeMode) resizeModeForPoint:(NSPoint)point;
@end
#endif

View file

@ -323,10 +323,10 @@ calc_new_frame(NSRect frame, NSPoint point, NSPoint firstPoint,
NSRect newFrame, frame;
NSSize minSize, maxSize;
int num = 0;
GSResizeEdgeMode mode = [self resizeModeForPoint: firstPoint];
firstPoint = [event locationInWindow];
GSResizeEdgeMode mode = [self resizeModeForPoint: firstPoint];
frame = [window frame];
minSize = [window minSize];