# Sync maximized state from top-level configure event for a wayland window \(\#11003\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7bd18fa6539abf1c369692f8cbe8d6501d00b50a

Requested commit: 7bd18fa6539abf1c369692f8cbe8d6501d00b50a

Commit: 7bd18fa6539abf1c369692f8cbe8d6501d00b50a

Tree: 149fe846c05fad8dae2cbe3eaf2c380dc45cfbc3

Author: Akilan Elango

Committer: GitHub

## Message

````
Sync maximized state from top-level configure event for a wayland window (#11003)

* Otherwise is_maximized always returns `true`



Release Notes:

- Fixed maximized state. Tested with a dummy maximize/restore button
with the `zoom()` (not implemented yet). Without the right `maximized`,
in toggle zoom function is not possible to call `set_maximized()` or
`unset_maximized()`.

```rust
    fn zoom(&self) {
      if self.is_maximized() {
        self.borrow_mut().toplevel.unset_maximized();
      } else {
        self.borrow_mut().toplevel.set_maximized();
      }
    }
```
````

## Parents

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

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