No, I wasn't calling gdk_init() That was the problem. Thanks !
On Thu, Jan 9, 2014 at 8:10 PM, Rui Tiago Cação Matos <tiagoma...@gmail.com>wrote: > On 9 January 2014 15:20, Parin Porecha <parinpore...@gmail.com> wrote: > > 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 () > ? > > Are you calling gdk_init() ? > > > (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) > > This list or #gnome-shell on IRC is fine. > > Rui > -- Regards, Parin Porecha
_______________________________________________ gnome-shell-list mailing list gnome-shell-list@gnome.org https://mail.gnome.org/mailman/listinfo/gnome-shell-list