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