Index: libxfcegui4/xfce-gtk-extensions.c =================================================================== --- libxfcegui4/xfce-gtk-extensions.c (revision 19349) +++ libxfcegui4/xfce-gtk-extensions.c (working copy) @@ -46,7 +46,7 @@ GtkRequisition requisition; GdkRectangle geometry; GdkScreen *widget_screen; - gint x, y; + gint x, y, width, height; gdk_screen_get_monitor_geometry (screen, monitor, &geometry); @@ -73,9 +73,10 @@ */ 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); }