# gpui: Fix xdg_toplevel app_id set to None at first commit on Wayland \(\#55583\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 35eaeb94a7e5e9dcd7384df4bd21f01c30a38a09

Requested commit: 35eaeb94a7e5e9dcd7384df4bd21f01c30a38a09

Commit: 35eaeb94a7e5e9dcd7384df4bd21f01c30a38a09

Tree: e5fff3a408584e128eed8184806ce4e576293c57

Author: mTvare

Committer: GitHub

## Message

```
gpui: Fix xdg_toplevel app_id set to None at first commit on Wayland (#55583)

This PR fixes the default behaviour of setting `app_id` to `None` which
breaks the rules based management by KWin as the first commit doesn't
have the actual `app_id` and apply initially setting stops checking for
the window by when it updates.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #53962

Release Notes:

- Fixed KWin not respecting Zed's rules due to mismatch of toplevel
app_id at startup
```

## Parents

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

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