diff --git a/gnome-panel/panel-multiscreen.c b/gnome-panel/panel-multiscreen.c
index 8a05221..6c4ccbe 100644
--- a/gnome-panel/panel-multiscreen.c
+++ b/gnome-panel/panel-multiscreen.c
@@ -106,8 +106,10 @@ panel_multiscreen_get_randr_monitors_for_screen (GdkScreen     *screen,
 	int                 i;
 	gboolean            driver_is_pre_randr_1_2;
 
+	g_print ("panel_multiscreen_get_randr_monitors_for_screen -- start\n");
 	if (!have_randr)
 		return FALSE;
+	g_print ("panel_multiscreen_get_randr_monitors_for_screen -- have randr\n");
 
 	/* GTK+ 2.14.x uses the Xinerama API, instead of RANDR, to get the
 	 * monitor geometries. It does this to avoid calling
@@ -146,6 +148,7 @@ panel_multiscreen_get_randr_monitors_for_screen (GdkScreen     *screen,
 
 	if (!resources)
 		return FALSE;
+	g_print ("panel_multiscreen_get_randr_monitors_for_screen -- have resources\n");
 
 	primary = None;
 #if (RANDR_MAJOR > 1 || (RANDR_MAJOR == 1 && RANDR_MINOR >= 3))
@@ -159,22 +162,27 @@ panel_multiscreen_get_randr_monitors_for_screen (GdkScreen     *screen,
 
 	driver_is_pre_randr_1_2 = FALSE;
 
+	g_print ("panel_multiscreen_get_randr_monitors_for_screen -- begin loop\n");
 	for (i = 0; i < resources->noutput; i++) {
 		XRROutputInfo *output;
 
+		g_print ("panel_multiscreen_get_randr_monitors_for_screen -- loop %d\n", i);
 		output = XRRGetOutputInfo (xdisplay, resources,
 					   resources->outputs[i]);
 
 		/* Drivers before RANDR 1.2 return "default" for the output
 		 * name */
-		if (g_strcmp0 (output->name, "default") == 0)
+		if (g_strcmp0 (output->name, "default") == 0) {
+			g_print ("panel_multiscreen_get_randr_monitors_for_screen -- is pre randr 1.2\n");
 			driver_is_pre_randr_1_2 = TRUE;
+		}
 
 		if (output->connection != RR_Disconnected &&
 		    output->crtc != 0) {
 			XRRCrtcInfo  *crtc;
 			GdkRectangle  rect;
 
+			g_print ("panel_multiscreen_get_randr_monitors_for_screen -- has crtc\n");
 			crtc = XRRGetCrtcInfo (xdisplay, resources,
 					       output->crtc);
 
@@ -195,10 +203,12 @@ panel_multiscreen_get_randr_monitors_for_screen (GdkScreen     *screen,
 
 		XRRFreeOutputInfo (output);
 	}
+	g_print ("panel_multiscreen_get_randr_monitors_for_screen -- end loop\n");
 
 	XRRFreeScreenResources (resources);
 
 	if (driver_is_pre_randr_1_2) {
+		g_print ("panel_multiscreen_get_randr_monitors_for_screen -- is pre randr 1.2 so FALSE\n");
 		/* Drivers before RANDR 1.2 don't provide useful info about
 		 * outputs */
 		g_array_free (geometries, TRUE);
@@ -207,6 +217,7 @@ panel_multiscreen_get_randr_monitors_for_screen (GdkScreen     *screen,
 
 	*monitors_ret = geometries->len;
 	*geometries_ret = (GdkRectangle *) g_array_free (geometries, FALSE);
+	g_print ("panel_multiscreen_get_randr_monitors_for_screen -- return %d\n", *monitors_ret);
 
 	return TRUE;
 #else
@@ -238,9 +249,17 @@ panel_multiscreen_get_raw_monitors_for_screen (GdkScreen     *screen,
 					       int           *monitors_ret,
 					       GdkRectangle **geometries_ret)
 {
-	if (panel_multiscreen_get_randr_monitors_for_screen (screen,
-							     monitors_ret,
-							     geometries_ret))
+	gboolean res;
+
+	*monitors_ret = 0;
+	*geometries_ret = NULL;
+
+	g_print ("panel_multiscreen_get_raw_monitors_for_screen -- start\n");
+	res = panel_multiscreen_get_randr_monitors_for_screen (screen,
+							       monitors_ret,
+							       geometries_ret);
+	g_print ("panel_multiscreen_get_raw_monitors_for_screen -- randr returned %d len=%d\n", res, *monitors_ret);
+	if (res && *monitors_ret > 0)
 		return;
 
 	panel_multiscreen_get_gdk_monitors_for_screen (screen,
