How can I remove the window shadow in Mountain Lion?

There's an application called ShadowKiller that seems popular and supposedly works for Lion, but it just seems to die as soon as I try to start it on Mountain Lion.

I'd like to get around of the shadows surrounding a window.


This one works well for me: toggle-osx-shadows.

It is easy to compile and use, and there are only 17 lines of code.


ShadowKiller still works for me on 10.8, but it's supposed to quit silently after it's opened. You can run it at login by adding it to login items.

Nocturne also has an option to disable the shadows.

Related questions at Super User:

  • Disable drop shadows around windows or the menu bar on OS X
  • How do I decrease the window shadow in Mac OS X?

I spent a lot of time on this issue, and even got to the point that I wrote a little program to fix it. Then I discovered something much simpler:

defaults write NSGlobalDomain NSUseLeopardWindowValues NO
defaults write com.apple.Safari NSUseLeopardWindowValues YES

The second one is necessary because Safari doesn't seem to like the shadows (you get a "Invalid unbuffered shadow parameters." comment in syslog).


The program I use to do this on OS X 10.8.4 is ShadowSweeper.

http://download.cnet.com/ShadowSweeper/3000-2072_4-75966596.html

This one looks like it might also work but I haven't tried it myself.

https://github.com/puffnfresh/toggle-osx-shadows