# Editor.Widget.DisableWindowActivation

```csharp
void DisableWindowActivation()
```

Calling this will set the WS_EX_NOACTIVATE flag on the window internally, which will stop
it taking focus away from other windows.

Declared in [Editor.Widget](/api/Editor.Widget).
Assembly: `Sandbox.Tools`.
