Add protection for the root window on Cocoa (MacOS X)