--- gnome-desktop-2.90.4/libgnome-desktop/gnome-desktop-item.c	2010-03-27 07:34:40.000000000 -0400
+++ hacked/libgnome-desktop/gnome-desktop-item.c	2010-09-22 00:08:51.173997995 -0400
@@ -1786,7 +1786,7 @@
 	arg_ptr = make_args (file_list);
 
 #ifdef HAVE_STARTUP_NOTIFICATION
-	sn_display = sn_display_new (gdk_display,
+	sn_display = sn_display_new (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
 				     sn_error_trap_push,
 				     sn_error_trap_pop);
 
@@ -1805,7 +1805,7 @@
 
 		sn_context = sn_launcher_context_new (sn_display,
 						      screen ? gdk_screen_get_number (screen) :
-						      DefaultScreen (gdk_display));
+						      DefaultScreen (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ())));
 		
 		name = gnome_desktop_item_get_localestring (item,
 							    GNOME_DESKTOP_ITEM_NAME);
