<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGWindowListOption/excludeDesktopElements",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@E@CGWindowListOption@kCGWindowListExcludeDesktopElements"
  },
  "title" : "excludeDesktopElements"
}
-->

# excludeDesktopElements

```
static var excludeDesktopElements: CGWindowListOption { get }
```

## Discussion

Exclude any windows from the list that are elements of the desktop, including the background picture and desktop icons. You may combine this option with the other options.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)