---
title: optionIncludingWindow
framework: coregraphics
role: symbol
role_heading: Type Property
path: coregraphics/cgwindowlistoption/optionincludingwindow
---

# optionIncludingWindow

## Declaration

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

## Discussion

Discussion Include the specified window (from the relativeToWindow parameter) in the returned list. You must combine this option with the optionOnScreenAboveWindow or optionOnScreenBelowWindow option to retrieve meaningful results.

## See Also

### Type Properties

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