# gpui\(windows\): Don't log incorrect errors on \`SetActiveWindow\` calls \(\#45493\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0884305e43e65a3ac47b6bea8c46c3a653358c08

Requested commit: 0884305e43e65a3ac47b6bea8c46c3a653358c08

Commit: 0884305e43e65a3ac47b6bea8c46c3a653358c08

Tree: 07701086261615f121c0d699eadd4e459173573a

Author: Lukas Wirth

Committer: GitHub

## Message

```
gpui(windows): Don't log incorrect errors on `SetActiveWindow` calls (#45493)

The function returns the previous focus handle, which may be null if
there is no previous focus. Unfortunately that also overlaps with the
error return value, so winapi will hand us a error 0 back in those cases
which we log ...


Release Notes:

- N/A *or* Added/Fixed/Improved ...
```

## Parents

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

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