How to use gdk_display_get_default () ? (Mutter related doubt)
- From: Parin Porecha <parinporecha gmail com>
- To: gnome-shell-list <gnome-shell-list gnome org>
- Subject: How to use gdk_display_get_default () ? (Mutter related doubt)
- Date: Thu, 9 Jan 2014 19:50:13 +0530
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]