mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
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
This commit is contained in:
parent
82ceb7c837
commit
14dccacfde
@ -1,3 +1,8 @@
|
|||||||
|
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
|
||||||
|
|
||||||
2002-04-30 Havoc Pennington <hp@pobox.com>
|
2002-04-30 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* src/keybindings.c: finish mopping up mode_switch_mask field
|
* src/keybindings.c: finish mopping up mode_switch_mask field
|
||||||
|
@ -38,9 +38,13 @@ if test -n "$DEMO_TEST"; then
|
|||||||
TEST_CLIENT='./tools/metacity-window-demo'
|
TEST_CLIENT='./tools/metacity-window-demo'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test -n "$XINERAMA"; then
|
||||||
|
XINERAMA_FLAGS='+xinerama'
|
||||||
|
fi
|
||||||
|
|
||||||
if test -z "$ONLY_WM"; then
|
if test -z "$ONLY_WM"; then
|
||||||
echo "Launching Xnest"
|
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
|
## usleep 800000
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
|
@ -164,6 +164,7 @@ meta_screen_new (MetaDisplay *display,
|
|||||||
MetaScreen *screen;
|
MetaScreen *screen;
|
||||||
Window xroot;
|
Window xroot;
|
||||||
Display *xdisplay;
|
Display *xdisplay;
|
||||||
|
int xinerama_event_base, xinerama_error_base;
|
||||||
|
|
||||||
/* Only display->name, display->xdisplay, and display->error_traps
|
/* Only display->name, display->xdisplay, and display->error_traps
|
||||||
* can really be used in this function, since normally screens are
|
* 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;
|
screen->n_xinerama_infos = 0;
|
||||||
|
|
||||||
#ifdef HAVE_XINERAMA
|
#ifdef HAVE_XINERAMA
|
||||||
if (XineramaQueryExtension (display->xdisplay, NULL, NULL))
|
if (XineramaQueryExtension (display->xdisplay,
|
||||||
|
&xinerama_event_base,
|
||||||
|
&xinerama_error_base))
|
||||||
{
|
{
|
||||||
XineramaScreenInfo *infos;
|
XineramaScreenInfo *infos;
|
||||||
int n_infos;
|
int n_infos;
|
||||||
|
Loading…
Reference in New Issue
Block a user