Index: gdisplay_ops.c
===================================================================
RCS file: /cvs/gnome/gimp/app/gdisplay_ops.c,v
retrieving revision 1.52
diff -u -r1.52 gdisplay_ops.c
--- gdisplay_ops.c	2001/01/24 22:34:59	1.52
+++ gdisplay_ops.c	2001/02/19 19:01:56
@@ -229,7 +229,11 @@
 
       gtk_widget_size_allocate (gdisp->shell, &allocation);
 
-      gdk_window_resize (gdisp->shell->window,
+      gtk_widget_set_usize( gdisp->shell, 
+			    allocation.width,
+			    allocation.height);
+
+      gdk_window_resize (gdisp->shell->window, 
 			 allocation.width,
 			 allocation.height);
 
@@ -240,9 +244,10 @@
       gdk_window_get_origin (gdisp->shell->window, &shell_x, &shell_y);
 
       /*  if the window is offscreen, center it...  */
-      if (shell_x > s_width || shell_y > s_height ||
-	  (shell_x + width +  border_x) < 0 || (shell_y + height + border_y) < 0)
-	{
+      if (shell_x < 0 || shell_y < 0 ||
+ 	  (shell_x + width +  border_x) > s_width  || 
+	  (shell_y + height + border_y) > s_height) 
+      {
 	  shell_x = (s_width  - width  - border_x) >> 1;
 	  shell_y = (s_height - height - border_y) >> 1;
 
