Skip to content
Create a gist now

Instantly share code, notes, and snippets.

NSNumber *windowLevelIndex = [[NSUserDefaults standardUserDefaults] objectForKey:@"DesktopBackgroundLevel"];
if (windowLevelIndex != nil) {
switch ([windowLevelIndex integerValue]) {
case 0: // Show behind the desktop icons, but on the desktop - ignored by Exposé
[window setLevel:kCGDesktopWindowLevel];
[window setIgnoresMouseEvents:YES];
[window orderBack:self];
case 1: // Show above the desktop icons - still ignored by Exposé
[window setLevel:kCGDesktopIconWindowLevel];
[window setIgnoresMouseEvents:NO];
[window orderFront:self];
[window clearExposeTags];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.