Making bevel a non-window-moving area for now, due to a glitch with using it in AG.
[ITKit.git] / ITBevelView.m
index 985e313..d5beb0d 100755 (executable)
@@ -54,7 +54,7 @@
 
 - (void)drawRect:(NSRect)aRect
 {
-    NSRect frameRect = [self frame];
+    NSRect frameRect = [self convertRect:[self frame] fromView:[self superview]];
     NSRect innerRect = NSMakeRect( (frameRect.origin.x + _bevelDepth),
                                    (frameRect.origin.y + _bevelDepth),
                                    (frameRect.size.width  - (_bevelDepth * 2)),
     [[[self subviews] objectAtIndex:0] setNeedsDisplay:YES];
 }
 
+- (BOOL)mouseDownCanMoveWindow
+{
+    return NO;
+}
+
 
 /*************************************************************************/
 #pragma mark -