talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 5edbae19682b1a8bb70513ea1b3ae0753ae3cc11
parent 6e39525c3569c1bcf29d2b7d5de0ba2845beb382
Author: paul <paul@claws-mail.org>
Date:   Thu, 28 Jan 2021 08:49:41 +0000

fix bug 4433, 'main window: GTK_CSD=1 causes window to grow with every restart'

patch by Steve Randall

Diffstat:
MAUTHORS | 1+
Msrc/gtk/authors.h | 1+
Msrc/mainwindow.c | 2+-
3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/AUTHORS b/AUTHORS @@ -335,3 +335,4 @@ contributors (in addition to the above; based on Changelog) Damian Poddebniak Alvar Penning Orivej Desh + Steve Randall diff --git a/src/gtk/authors.h b/src/gtk/authors.h @@ -259,6 +259,7 @@ static char *CONTRIBS_LIST[] = { "Quar", "Don Quijote", "Steve Rader", +"Steve Randall", "Jens Rantil", "Ravemax", "Eric S. Raymond", diff --git a/src/mainwindow.c b/src/mainwindow.c @@ -2792,7 +2792,7 @@ void main_window_get_size(MainWindow *mainwin) prefs_common.mainview_width = allocation.width; } - gtk_widget_get_allocation(mainwin->window, &allocation); + gtk_window_get_size(mainwin->window, &allocation.width, &allocation.height); if (allocation.width > 1 && allocation.height > 1 && !prefs_common.mainwin_maximised && !prefs_common.mainwin_fullscreen) { prefs_common.mainview_height = allocation.height;