# plan.ops.windows.NewWindow.focus

- **Module:** plan.ops.windows.NewWindow
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/plan/ops/windows.rs#L107
- **Page:** https://libtmux.org/en/rs/latest/reference/plan-ops-windows-newwindow-focus/

```
plan.ops.windows.NewWindow.focus(mut) -> Self
```

Leave the new window, and so its pane, active.

A focused creation is what makes the `{marked}` fold available: the
register the fold marks is the active pane.
