1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:57:35 +00:00

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

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];