You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
celluloid/65d0e47fcede58cb78df8e9a29f...

26 lines
865 B

From 65d0e47fcede58cb78df8e9a29ff669e2287273b Mon Sep 17 00:00:00 2001
From: gnome-mpv <gnome-mpv@nowhere>
Date: Sun, 21 Nov 2021 17:54:34 +0700
Subject: [PATCH] main-window: Fix window size shrinking across sessions
Fixes #713.
---
src/celluloid-main-window.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/celluloid-main-window.c b/src/celluloid-main-window.c
index e96b50f3..6af84749 100644
--- a/src/celluloid-main-window.c
+++ b/src/celluloid-main-window.c
@@ -576,8 +576,8 @@ celluloid_main_window_save_state(CelluloidMainWindow *wnd)
if(!maximized)
{
- g_settings_set_int(settings, "width", width - 52);
- g_settings_set_int(settings, "height", height - 52);
+ g_settings_set_int(settings, "width", width);
+ g_settings_set_int(settings, "height", height);
}
if(celluloid_main_window_get_playlist_visible(wnd))