---
title: preventWindowOrdering()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsapplication/preventwindowordering()
---

# preventWindowOrdering()

Suppresses the usual window ordering in handling the most recent mouse-down event.

## Declaration

```swift
func preventWindowOrdering()
```

## Discussion

Discussion This method is only useful for mouse-down events when you want to prevent the window that receives the event from being ordered to the front.

## See Also

### Managing Window Layers

- [arrangeInFront(_:)](appkit/nsapplication/arrangeinfront(_:).md)
