# Map window after set_app_id\(\) under X11 \(\#23046\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9c3482083bf8e15aefb7bab38c0c4649d64c27c5

Requested commit: 9c3482083bf8e15aefb7bab38c0c4649d64c27c5

Commit: 9c3482083bf8e15aefb7bab38c0c4649d64c27c5

Tree: 4f91963b984a936d95a61a4bb721fca47796768f

Author: Mike Qin

Committer: GitHub

## Message

```
Map window after set_app_id() under X11 (#23046)

GPUI applications can set the window class by the `app_id` window
option. However, GPUI will map the window first and then change the
window class after the window is displayed. This doesn't work on some
X11 window managers. FVWM, for example, does not track window class
after a window is mapped. Because in practice, a window shouldn't change
its application group on the fly.

This PR fixed this by adding a `map_window()` function `PlatformWindow`.
On X11, it will `set_app_id()` first and then map the window.

Release Notes:

- N/A
```

## Parents

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

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