summaryrefslogtreecommitdiff
path: root/frontends/cocoa/PSMTabBarControl/PSMTabDragWindow.m
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/cocoa/PSMTabBarControl/PSMTabDragWindow.m')
-rw-r--r--frontends/cocoa/PSMTabBarControl/PSMTabDragWindow.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/cocoa/PSMTabBarControl/PSMTabDragWindow.m b/frontends/cocoa/PSMTabBarControl/PSMTabDragWindow.m
index d6fcc95a3..8bf51f6dd 100644
--- a/frontends/cocoa/PSMTabBarControl/PSMTabDragWindow.m
+++ b/frontends/cocoa/PSMTabBarControl/PSMTabDragWindow.m
@@ -12,14 +12,14 @@
@implementation PSMTabDragWindow
+ (PSMTabDragWindow *)dragWindowWithImage:(NSImage *)image styleMask:(NSUInteger)styleMask {
- return [[[PSMTabDragWindow alloc] initWithImage:image styleMask:styleMask] autorelease];
+ return [[PSMTabDragWindow alloc] initWithImage:image styleMask:styleMask] ;
}
- (id)initWithImage:(NSImage *)image styleMask:(NSUInteger)styleMask {
NSSize size = [image size];
if((self = [super initWithContentRect:NSMakeRect(0, 0, size.width, size.height) styleMask:styleMask backing:NSBackingStoreBuffered defer:NO])) {
- _dragView = [[[PSMTabDragView alloc] initWithFrame:NSMakeRect(0, 0, size.width, size.height)] autorelease];
+ _dragView = [[PSMTabDragView alloc] initWithFrame:NSMakeRect(0, 0, size.width, size.height)] ;
[self setContentView:_dragView];
[self setLevel:NSStatusWindowLevel];
[self setIgnoresMouseEvents:YES];
@@ -32,7 +32,7 @@
windowFrame.origin.y += windowFrame.size.height - size.height;
windowFrame.size = size;
- if(styleMask | NSBorderlessWindowMask) {
+ if(styleMask | NSWindowStyleMaskBorderless) {
windowFrame.size.height += 22;
}