Don't update the remembered window size when maximized.
If the window is maximized the effective size matches the available screen size, thus after restarting the browser we end up with a window the size of the screen in normal state.
This commit is contained in:
parent
e3561c71ad
commit
352e4f7423
1 changed files with 8 additions and 2 deletions
|
@ -825,10 +825,16 @@ void on_findbox_button_close_clicked(GtkWidget* widget, CBrowser* browser)
|
|||
|
||||
static void on_window_size_allocate(GtkWidget* widget, GtkAllocation* allocation
|
||||
, CBrowser* browser)
|
||||
{
|
||||
if(!GTK_WIDGET_REALIZED(widget))
|
||||
return;
|
||||
if(!(gdk_window_get_state(widget->window)
|
||||
& (GDK_WINDOW_STATE_MAXIMIZED | GDK_WINDOW_STATE_FULLSCREEN)))
|
||||
{
|
||||
config->winWidth = allocation->width;
|
||||
config->winHeight = allocation->height;
|
||||
}
|
||||
}
|
||||
|
||||
gboolean on_window_destroy(GtkWidget* widget, GdkEvent* event, CBrowser* browser)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue