* clutter/glx/clutter-stage-glx.c: for extra sanity, set

stage_x11->xvisinfo = NULL after XFree. Makes using the root window
as foreign window possible.
This commit is contained in:
Øyvind Kolås 2007-12-03 16:16:41 +00:00
parent 3def17d9d2
commit ace69e71b3
2 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2007-12-03 Øyvind Kolås <pippin@o-hand.com>
* clutter/glx/clutter-stage-glx.c: for extra sanity, set
stage_x11->xvisinfo = NULL after XFree. Makes using the root window
as foreign window possible.
2007-11-30 Øyvind Kolås <pippin@o-hand.com>
* clutter/clutter-timeline.c: (clutter_timeline_get_delta): return the

View File

@ -126,7 +126,9 @@ clutter_stage_glx_realize (ClutterActor *actor)
if (stage_x11->xvisinfo)
XFree (stage_x11->xvisinfo);
stage_x11->xvisinfo = NULL;
/* The following check seems strange */
if (stage_x11->xvisinfo == None)
stage_x11->xvisinfo = glXChooseVisual (stage_x11->xdpy,
stage_x11->xscreen,
@ -216,8 +218,9 @@ clutter_stage_glx_realize (ClutterActor *actor)
0
};
if (stage_x11->xvisinfo)
if (stage_x11->xvisinfo )
XFree (stage_x11->xvisinfo);
stage_x11->xvisinfo = NULL;
CLUTTER_NOTE (GL, "glXChooseVisual");
stage_x11->xvisinfo = glXChooseVisual (stage_x11->xdpy,