summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c
index a4a6dfe..14c71b8 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -164,6 +164,7 @@ meta_screen_new (MetaDisplay *display,
MetaScreen *screen;
Window xroot;
Display *xdisplay;
+ int xinerama_event_base, xinerama_error_base;
/* Only display->name, display->xdisplay, and display->error_traps
* can really be used in this function, since normally screens are
@@ -220,7 +221,9 @@ meta_screen_new (MetaDisplay *display,
screen->n_xinerama_infos = 0;
#ifdef HAVE_XINERAMA
- if (XineramaQueryExtension (display->xdisplay, NULL, NULL))
+ if (XineramaQueryExtension (display->xdisplay,
+ &xinerama_event_base,
+ &xinerama_error_base))
{
XineramaScreenInfo *infos;
int n_infos;