[Commits] [SCM] claws branch, master, updated. 4.2.0-18-g0a833d4a9

paul at claws-mail.org paul at claws-mail.org
Thu Dec 21 14:57:14 UTC 2023


The branch, master has been updated
       via  0a833d4a9acf8f7f92e5809d372a8c96f526fa3c (commit)
      from  fc3c3b5c9f85b95449f3abcfd62befdcc76299d6 (commit)

Summary of changes:
 src/mainwindow.c | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)


- Log -----------------------------------------------------------------
commit 0a833d4a9acf8f7f92e5809d372a8c96f526fa3c
Author: Paul <paul at claws-mail.org>
Date:   Thu Dec 21 15:56:49 2023 +0100

    fix bug 4668, 'Sometimes, at program start, message list takes all the vertical space' and other sizing issues

diff --git a/src/mainwindow.c b/src/mainwindow.c
index a2b0b92e3..9865493ad 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -2784,13 +2784,8 @@ void main_window_get_size(MainWindow *mainwin)
 		return;
 	}
 
-	if (prefs_common.mainwin_fullscreen) {
-		debug_print("mainwin in full screen state. "
-			    "Keeping original settings\n");
-	}
-
 	gtk_widget_get_allocation(GTK_WIDGET_PTR(mainwin->summaryview), &allocation);
-	if (allocation.width > 1 && allocation.height > 1 && !prefs_common.mainwin_fullscreen) {
+	if (allocation.width > 1 && allocation.height > 1) {
 		prefs_common.summaryview_width = allocation.width;
 
 		if (messageview_is_visible(mainwin->messageview))
@@ -2800,23 +2795,20 @@ void main_window_get_size(MainWindow *mainwin)
 	}
 
 	gtk_window_get_size(GTK_WINDOW(mainwin->window), &allocation.width, &allocation.height);
-	if (allocation.width > 1 && allocation.height > 1 &&
-	    !prefs_common.mainwin_maximised && !prefs_common.mainwin_fullscreen) {
+	if (allocation.width > 1 && allocation.height > 1) {
 		prefs_common.mainview_height = allocation.height;
 		prefs_common.mainwin_width   = allocation.width;
 		prefs_common.mainwin_height  = allocation.height;
 	}
 
 	gtk_widget_get_allocation(GTK_WIDGET_PTR(mainwin->folderview), &allocation);
-	if (allocation.width > 1 && allocation.height > 1 &&
-	    !prefs_common.mainwin_fullscreen) {
+	if (allocation.width > 1 && allocation.height > 1) {
 		prefs_common.folderview_width  = allocation.width;
 		prefs_common.folderview_height = allocation.height;
 	}
 	
 	gtk_widget_get_allocation(GTK_WIDGET_PTR(mainwin->messageview), &allocation);
-	if (allocation.width > 1 && allocation.height > 1 &&
-	    !prefs_common.mainwin_fullscreen) {
+	if (allocation.width > 1 && allocation.height > 1) {
 		prefs_common.msgview_width = allocation.width;
 		prefs_common.msgview_height = allocation.height;
 	}

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list