mirror of
https://github.com/brl/mutter.git
synced 2025-01-22 17:38:56 +00:00
* 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:
parent
3def17d9d2
commit
ace69e71b3
@ -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>
|
2007-11-30 Øyvind Kolås <pippin@o-hand.com>
|
||||||
|
|
||||||
* clutter/clutter-timeline.c: (clutter_timeline_get_delta): return the
|
* clutter/clutter-timeline.c: (clutter_timeline_get_delta): return the
|
||||||
|
@ -125,11 +125,13 @@ clutter_stage_glx_realize (ClutterActor *actor)
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (stage_x11->xvisinfo)
|
if (stage_x11->xvisinfo)
|
||||||
XFree (stage_x11->xvisinfo);
|
XFree (stage_x11->xvisinfo);
|
||||||
|
stage_x11->xvisinfo = NULL;
|
||||||
|
|
||||||
|
/* The following check seems strange */
|
||||||
if (stage_x11->xvisinfo == None)
|
if (stage_x11->xvisinfo == None)
|
||||||
stage_x11->xvisinfo = glXChooseVisual (stage_x11->xdpy,
|
stage_x11->xvisinfo = glXChooseVisual (stage_x11->xdpy,
|
||||||
stage_x11->xscreen,
|
stage_x11->xscreen,
|
||||||
gl_attributes);
|
gl_attributes);
|
||||||
if (!stage_x11->xvisinfo)
|
if (!stage_x11->xvisinfo)
|
||||||
{
|
{
|
||||||
@ -216,8 +218,9 @@ clutter_stage_glx_realize (ClutterActor *actor)
|
|||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
if (stage_x11->xvisinfo)
|
if (stage_x11->xvisinfo )
|
||||||
XFree (stage_x11->xvisinfo);
|
XFree (stage_x11->xvisinfo);
|
||||||
|
stage_x11->xvisinfo = NULL;
|
||||||
|
|
||||||
CLUTTER_NOTE (GL, "glXChooseVisual");
|
CLUTTER_NOTE (GL, "glXChooseVisual");
|
||||||
stage_x11->xvisinfo = glXChooseVisual (stage_x11->xdpy,
|
stage_x11->xvisinfo = glXChooseVisual (stage_x11->xdpy,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user