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

# optionIncludingWindow

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

## Discussion

Include the specified window (from the `relativeToWindow` parameter) in the returned list. You must combine this option with the [`optionOnScreenAboveWindow`](/documentation/CoreGraphics/CGWindowListOption/optionOnScreenAboveWindow) or [`optionOnScreenBelowWindow`](/documentation/CoreGraphics/CGWindowListOption/optionOnScreenBelowWindow) option to retrieve meaningful results.

---

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)