summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2002-05-01 16:31:58 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-05-01 16:31:58 +0000
commit14dccacfde677df0d675cbec0b8ce30839e2a389 (patch)
treeaaf44397966339dbc1eb06f96b1dfeb0ec21d6de /src
parent82ceb7c83716f6e31a7ea14dce2ccd6398df10f0 (diff)
downloadmetacity-14dccacfde677df0d675cbec0b8ce30839e2a389.tar.gz
metacity-14dccacfde677df0d675cbec0b8ce30839e2a389.tar.bz2
Xlib doesn't like NULL for out arguments; fix for #80472 from lbedford
2002-05-01 Havoc Pennington <hp@redhat.com> * src/screen.c (meta_screen_new): Xlib doesn't like NULL for out arguments; fix for #80472 from lbedford
Diffstat (limited to 'src')
-rwxr-xr-xsrc/run-metacity.sh6
-rw-r--r--src/screen.c5
2 files changed, 9 insertions, 2 deletions
diff --git a/src/run-metacity.sh b/src/run-metacity.sh
index 474139c..8e99b82 100755
--- a/src/run-metacity.sh
+++ b/src/run-metacity.sh
@@ -38,9 +38,13 @@ if test -n "$DEMO_TEST"; then
TEST_CLIENT='./tools/metacity-window-demo'
fi
+if test -n "$XINERAMA"; then
+ XINERAMA_FLAGS='+xinerama'
+fi
+
if test -z "$ONLY_WM"; then
echo "Launching Xnest"
- Xnest -ac $XNEST_DISPLAY -scrns $SCREENS -geometry 640x480 -bw 15 &
+ Xnest -ac $XNEST_DISPLAY -scrns $SCREENS -geometry 640x480 -bw 15 $XINERAMA_FLAGS &
## usleep 800000
sleep 1
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;