Always remember the last window size and position (#9416)
make new runs of zed always match the window of the previous run of Zed, even if it's not the same workspace fixes https://github.com/zed-industries/zed/issues/5258 Release Notes: - Zed will always open new windows with the same position and location as the previous instance of Zed.
This commit is contained in:
@@ -421,8 +421,8 @@ impl WorkspaceDb {
|
||||
}
|
||||
|
||||
query! {
|
||||
pub fn last_monitor() -> Result<Option<Uuid>> {
|
||||
SELECT display
|
||||
pub fn last_window() -> Result<(Option<Uuid>, Option<SerializedWindowsBounds>, Option<bool>)> {
|
||||
SELECT display, window_state, window_x, window_y, window_width, window_height, fullscreen
|
||||
FROM workspaces
|
||||
WHERE workspace_location IS NOT NULL
|
||||
ORDER BY timestamp DESC
|
||||
|
||||
Reference in New Issue
Block a user