---
title: excludeDesktopElements
framework: coregraphics
role: symbol
role_heading: Type Property
path: coregraphics/cgwindowlistoption/excludedesktopelements
---

# excludeDesktopElements

## Declaration

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

## Discussion

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.

## See Also

### Type Properties

- [optionAll](coregraphics/cgwindowlistoption/optionall.md)
- [optionIncludingWindow](coregraphics/cgwindowlistoption/optionincludingwindow.md)
- [optionOnScreenAboveWindow](coregraphics/cgwindowlistoption/optiononscreenabovewindow.md)
- [optionOnScreenBelowWindow](coregraphics/cgwindowlistoption/optiononscreenbelowwindow.md)
- [optionOnScreenOnly](coregraphics/cgwindowlistoption/optiononscreenonly.md)
