zed
zed copied to clipboard
Sync maximized state from top-level configure event for a wayland window
- 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 rightmaximized, in toggle zoom function is not possible to callset_maximized()orunset_maximized().
fn zoom(&self) {
if self.is_maximized() {
self.borrow_mut().toplevel.unset_maximized();
} else {
self.borrow_mut().toplevel.set_maximized();
}
}
We require contributors to sign our Contributor License Agreement, and we don't have @aki237 on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.
@cla-bot check
The cla-bot has been summoned, and re-checked this pull request!
Sorry for the commits, I was working on a PoC for draggable wayland windows, accidently pushed it to this branch.
Thank you!