mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-04 06:53:22 +01:00
wayland: Implement zoom function
Can now maximize window by double clicking on the title bar
This commit is contained in:
1 parent
02b710751e
commit
b8d87ef3de
1 file changed
+6
-1
@@ -676,7 +676,12 @@ impl PlatformWindow for WaylandWindow {
|
||||
}
|
||||
|
||||
fn zoom(&self) {
|
||||
// todo(linux)
|
||||
let state = self.borrow();
|
||||
if !state.maximized {
|
||||
state.toplevel.set_maximized();
|
||||
} else {
|
||||
state.toplevel.unset_maximized();
|
||||
}
|
||||
}
|
||||
|
||||
fn toggle_fullscreen(&self) {
|
||||
|
||||
Reference in new issue
Block a user