windows: Avoid recording minimized position to database (#9407)
Minimizing window records strange position to DB. When Zed is restarted, the window goes far away. <img width="975" alt="image" src="https://github.com/zed-industries/zed/assets/6465609/98dbab71-fdbb-4911-b41a-9c3e498e5478"> So I fixed. Release Notes: - N/A
This commit is contained in:
@@ -283,6 +283,11 @@ impl PlatformWindow for WaylandWindow {
|
||||
false
|
||||
}
|
||||
|
||||
// todo(linux)
|
||||
fn is_minimized(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
fn content_size(&self) -> Size<Pixels> {
|
||||
let inner = self.0.inner.borrow();
|
||||
Size {
|
||||
|
||||
@@ -338,6 +338,11 @@ impl PlatformWindow for X11Window {
|
||||
false
|
||||
}
|
||||
|
||||
// todo(linux)
|
||||
fn is_minimized(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
fn content_size(&self) -> Size<Pixels> {
|
||||
self.0.inner.borrow_mut().content_size()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user