mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Ladybird/AppKit: Remember last window position and size
This commit is contained in:
parent
2767fa78f8
commit
274fd88242
Notes:
sideshowbarker
2024-07-17 04:01:41 +09:00
Author: https://github.com/bplaat Commit: https://github.com/SerenityOS/serenity/commit/274fd88242 Pull-request: https://github.com/SerenityOS/serenity/pull/21109 Reviewed-by: https://github.com/trflynn89
1 changed files with 3 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue