Hi,

Mutter uses GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()) to get the
Xdisplay of the default GdkDisplay. When I run mutter (gnome-3-10 branch)
through JHBuild, it is able to get the default GdkDisplay without any
problem.

But, when I write this code in a blank file -

Display *display = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
printf("Name of display is = %s\n",
gdk_display_get_name(gdk_display_get_default ()));

and run it, I get this error -

Gdk-CRITICAL **: gdk_x11_display_get_xdisplay: assertion `GDK_IS_DISPLAY
(display)' failed
Gdk-CRITICAL **: gdk_display_get_name: assertion `GDK_IS_DISPLAY (display)'
failed
Name of display is = (null)

Is there something mutter does before calling gdk_display_get_default () ?

(I couldn't find a mailing-list for mutter, so I had to post this here.
Sorry if this isn't the appropriate list for mutter related questions)


-- 
Regards,
Parin Porecha
_______________________________________________
gnome-shell-list mailing list
gnome-shell-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-shell-list

Reply via email to