Re: How to use gdk_display_get_default () ? (Mutter related doubt)
- From: Rui Tiago Cação Matos <tiagomatos gmail com>
- To: Parin Porecha <parinporecha gmail com>
- Cc: gnome-shell-list <gnome-shell-list gnome org>
- Subject: Re: How to use gdk_display_get_default () ? (Mutter related doubt)
- Date: Thu, 9 Jan 2014 15:40:30 +0100
On 9 January 2014 15:20, Parin Porecha <parinporecha 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]