summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorjacob berkman <jacob@ximian.com>2002-10-04 17:07:04 +0000
committerJacob Berkman <jberkman@src.gnome.org>2002-10-04 17:07:04 +0000
commita746c7c098086a05aa2df743451cd2fa1ad61b42 (patch)
tree76d0c2572e04a59079f4631efd6d15f40a64e3ab /gdk
parent73e0984242aba198e1e8da425f59acf5c188f69c (diff)
downloadgtk+-a746c7c098086a05aa2df743451cd2fa1ad61b42.tar.gz
make legal C
2002-10-04 jacob berkman <jacob@ximian.com> * gdk/x11/gdkscreen-x11.c (init_xinerama_support): make legal C
Diffstat (limited to 'gdk')
-rw-r--r--gdk/x11/gdkscreen-x11.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c
index ceaa314630..0cf0529c19 100644
--- a/gdk/x11/gdkscreen-x11.c
+++ b/gdk/x11/gdkscreen-x11.c
@@ -482,13 +482,14 @@ static void
init_xinerama_support (GdkScreen * screen)
{
GdkScreenX11 *screen_x11 = GDK_SCREEN_X11 (screen);
+#ifdef HAVE_XINERAMA
+ int opcode, firstevent, firsterror;
+#endif
if (screen_x11->monitors)
g_free (screen_x11->monitors);
-#ifdef HAVE_XINERAMA
- int opcode, firstevent, firsterror;
-
+#ifdef HAVE_XINERAMA
if (XQueryExtension (GDK_SCREEN_XDISPLAY (screen), "XINERAMA",
&opcode, &firstevent, &firsterror))
{