From 2ae9d84a2a917993ea2efb4f6980ed325a711371 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 6 May 2009 18:32:17 +0100 Subject: [PATCH] [x11] Use -1 as the default screen guard Currently, the default screen guard value is 0, which is a valid screen number on X11, and it might not be the default. Patch suggested by: Owen W. Taylor --- clutter/x11/clutter-backend-x11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clutter/x11/clutter-backend-x11.c b/clutter/x11/clutter-backend-x11.c index 28fe3e825..b8d17ab72 100644 --- a/clutter/x11/clutter-backend-x11.c +++ b/clutter/x11/clutter-backend-x11.c @@ -95,7 +95,7 @@ static Display *_foreign_dpy = NULL; /* options */ static gchar *clutter_display_name = NULL; -static gint clutter_screen = 0; +static gint clutter_screen = -1; static gboolean clutter_synchronise = FALSE; /* X error trap */ @@ -167,7 +167,7 @@ clutter_backend_x11_post_parse (ClutterBackend *backend, CLUTTER_NOTE (BACKEND, "Getting the X screen"); - if (clutter_screen == 0) + if (clutter_screen == -1) backend_x11->xscreen = DefaultScreenOfDisplay (backend_x11->xdpy); else backend_x11->xscreen = ScreenOfDisplay (backend_x11->xdpy,