diff --git a/AppKit/CPMenu.j b/AppKit/CPMenu.j index a9cdd64bb..ad0e2dad7 100644 --- a/AppKit/CPMenu.j +++ b/AppKit/CPMenu.j @@ -1006,6 +1006,7 @@ var STICKY_TIME_INTERVAL = 500, { [self setLevel:CPPopUpMenuWindowLevel]; [self setHasShadow:YES]; + [self setShadowStyle:CPMenuWindowShadowStyle]; [self setAcceptsMouseMovedEvents:YES]; _unconstrainedFrame = CGRectMakeZero(); diff --git a/AppKit/CPWindow/CPWindow.j b/AppKit/CPWindow/CPWindow.j index ab5c48ba3..ef3eaa277 100644 --- a/AppKit/CPWindow/CPWindow.j +++ b/AppKit/CPWindow/CPWindow.j @@ -1004,6 +1004,7 @@ CPTexturedBackgroundWindowMask - (void)setShadowStyle:(unsigned)aStyle { _shadowStyle = aStyle; + [[self platformWindow] setShadowStyle:_shadowStyle]; } @@ -2380,6 +2381,12 @@ function _CPWindowFullPlatformWindowSessionMake(aWindowView, aContentRect, hasSh return { windowView:aWindowView, contentRect:aContentRect, hasShadow:hasShadow, level:aLevel }; } +CPStandardWindowShadowStyle = 0; +CPMenuWindowShadowStyle = 1; +CPPanelWindowShadowStyle = 2; +CPCustomWindowShadowStyle = 3; + + @import "_CPWindowView.j" @import "_CPStandardWindowView.j" @import "_CPDocModalWindowView.j"