# Avoid calling \`focus_in\` when creating window · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/bed94455b9687cf4a3db03154ab4c22517464aec)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: bed94455b9687cf4a3db03154ab4c22517464aec

Requested commit: bed94455b9687cf4a3db03154ab4c22517464aec

Commit: bed94455b9687cf4a3db03154ab4c22517464aec

Tree: 11d5ddc2c113db871661fc63b43a13ade74da950

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Avoid calling `focus_in` when creating window

This is redundant because when creating a window we will receive
an activation event if the window was effectively focused. And if
it wasn't, we shouldn't call `focus_in`.

```

## Parents

- [f09e21aa9380ad357ca1fff4b2a0024409c00dd6](https://git.cafe/gitcafe/zed/commit/f09e21aa9380ad357ca1fff4b2a0024409c00dd6?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/bed94455b9687cf4a3db03154ab4c22517464aec?format=markdown)
