diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwindow.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c index 36c5abd1..0da3baa5 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -1447,22 +1447,24 @@ void main_window_get_size(MainWindow *mainwin) { GtkAllocation *allocation; - if (prefs_common.mainwin_maximized) - return; - allocation = &(GTK_WIDGET_PTR(mainwin->summaryview)->allocation); if (allocation->width > 1 && allocation->height > 1) { - prefs_common.summaryview_width = allocation->width; + if (!prefs_common.mainwin_maximized) { + prefs_common.summaryview_width = allocation->width; + prefs_common.mainview_width = allocation->width; + } if ((mainwin->type == SEPARATE_NONE || mainwin->type == SEPARATE_FOLDER) && messageview_is_visible(mainwin->messageview)) prefs_common.summaryview_height = allocation->height; - prefs_common.mainview_width = allocation->width; } + if (prefs_common.mainwin_maximized) + return; + allocation = &mainwin->window->allocation; if (allocation->width > 1 && allocation->height > 1) { prefs_common.mainview_height = allocation->height; |