--- evince.pristine/shell/ev-window.c	2017-05-31 12:16:18.379569227 +0200
+++ evince/shell/ev-window.c	2017-05-30 18:19:00.218510736 +0200
@@ -1230,8 +1230,6 @@
 	gint    page, n_pages;
 	gint    width;
 	gint    height;
-	gdouble width_ratio;
-	gdouble height_ratio;
 
 	if (!window->priv->metadata)
 		return;
@@ -1254,31 +1252,16 @@
 	if (n_pages == 1)
 		ev_document_model_set_dual_page (window->priv->model, FALSE);
 
-	g_settings_get (window->priv->default_settings, "window-ratio", "(dd)", &width_ratio, &height_ratio);
-	if (width_ratio > 0. && height_ratio > 0.) {
-		gdouble    document_width;
-		gdouble    document_height;
-		GdkScreen *screen;
-		gint       request_width;
-		gint       request_height;
-
-		ev_document_get_max_page_size (window->priv->document,
-					       &document_width, &document_height);
-
-		request_width = (gint)(width_ratio * document_width + 0.5);
-		request_height = (gint)(height_ratio * document_height + 0.5);
-
-		screen = gtk_window_get_screen (GTK_WINDOW (window));
-		if (screen) {
-			request_width = MIN (request_width, gdk_screen_get_width (screen));
-			request_height = MIN (request_height, gdk_screen_get_height (screen));
-		}
-
-		if (request_width > 0 && request_height > 0) {
-			gtk_window_resize (GTK_WINDOW (window),
-					   request_width,
-					   request_height);
-		}
+	GdkScreen *screen;
+	screen = gtk_window_get_screen (GTK_WINDOW (window));
+	if (screen) {
+                gint w, h, sw, sh;
+                sw = gdk_screen_get_width (screen);
+                sh = gdk_screen_get_height (screen);
+		w = sw * .65;
+		h = sh * .8;
+		gtk_window_resize (GTK_WINDOW (window), w, h);
+                gtk_window_move(GTK_WINDOW(window), (sw - w) / 2, (sh - h) / 3);
 	}
 }
 
@@ -5795,6 +5778,7 @@
 {
 	GdkWindowState state;
 	gdouble document_width, document_height;
+        gint x, y, w, h;
 
 	if (!window->priv->metadata)
 		return FALSE;
@@ -5809,10 +5793,13 @@
 					(double)event->width / document_width,
 					(double)event->height / document_height);
 
-			ev_metadata_set_int (window->priv->metadata, "window_x", event->x);
-			ev_metadata_set_int (window->priv->metadata, "window_y", event->y);
-			ev_metadata_set_int (window->priv->metadata, "window_width", event->width);
-			ev_metadata_set_int (window->priv->metadata, "window_height", event->height);
+                        gtk_window_get_position(GTK_WINDOW(window), &x, &y);
+                        gtk_window_get_size(GTK_WINDOW(window), &w, &h);
+
+			ev_metadata_set_int (window->priv->metadata, "window_x", x);
+			ev_metadata_set_int (window->priv->metadata, "window_y", y);
+			ev_metadata_set_int (window->priv->metadata, "window_width", w);
+			ev_metadata_set_int (window->priv->metadata, "window_height", h);
 		}
 	}
 
