Index: libxfcegui4/xfce-gtk-extensions.c =================================================================== --- libxfcegui4/xfce-gtk-extensions.c (revision 19349) +++ libxfcegui4/xfce-gtk-extensions.c (working copy) @@ -43,10 +43,9 @@ GdkScreen *screen, gint monitor) { - GtkRequisition requisition; GdkRectangle geometry; GdkScreen *widget_screen; - gint x, y; + gint x, y, width, height; gdk_screen_get_monitor_geometry (screen, monitor, &geometry); @@ -68,14 +67,10 @@ { gtk_widget_realize (GTK_WIDGET (window)); } - /* - * Yes, I know -1 is useless here (Olivier). - */ - requisition.width = requisition.height = -1; - gtk_widget_size_request (GTK_WIDGET (window), &requisition); + gtk_window_get_size (GTK_WINDOW (window), &width, &height); - x = geometry.x + (geometry.width - requisition.width) / 2; - y = geometry.y + (geometry.height - requisition.height) / 2; + x = geometry.x + (geometry.width - width) / 2; + y = geometry.y + (geometry.height - height) / 2; gtk_window_move (window, x, y); }