Ladybird/AppKit: Remember last window position and size

This commit is contained in:
Bastiaan van der Plaat 2023-09-17 21:28:13 +02:00 committed by Andrew Kaster
parent 2767fa78f8
commit 274fd88242
Notes: sideshowbarker 2024-07-17 04:01:41 +09:00

View file

@ -68,6 +68,9 @@ static constexpr CGFloat const WINDOW_HEIGHT = 800;
backing:NSBackingStoreBuffered
defer:NO];
// Remember last window position
self.frameAutosaveName = @"window";
if (self) {
self.web_view = [[LadybirdWebView alloc] init:self];
[self.web_view setPostsBoundsChangedNotifications:YES];