mirror of
https://github.com/brl/mutter.git
synced 2025-01-24 10:28:58 +00:00
2007-07-06 Matthew Allum <mallum@openedhand.com>
* clutter/clutter-box.c: (clutter_box_pick): Call clutter_box_paint rather than actor paint method avoiding infinte loop (Fixes test-boxes crasher). * clutter/glx/clutter-stage-glx.c: (clutter_stage_glx_unrealize): Trap the X calls to avoid potential X errors.
This commit is contained in:
parent
f586f2e5cb
commit
7ea9e2bcbb
@ -1,3 +1,12 @@
|
|||||||
|
2007-07-06 Matthew Allum <mallum@openedhand.com>
|
||||||
|
|
||||||
|
* clutter/clutter-box.c: (clutter_box_pick):
|
||||||
|
Call clutter_box_paint rather than actor paint method avoiding
|
||||||
|
infinte loop (Fixes test-boxes crasher).
|
||||||
|
|
||||||
|
* clutter/glx/clutter-stage-glx.c: (clutter_stage_glx_unrealize):
|
||||||
|
Trap the X calls to avoid potential X errors.
|
||||||
|
|
||||||
2007-07-06 Ross Burton <ross@openedhand.com>
|
2007-07-06 Ross Burton <ross@openedhand.com>
|
||||||
|
|
||||||
* tests/Makefile.am:
|
* tests/Makefile.am:
|
||||||
|
@ -165,7 +165,7 @@ clutter_box_pick (ClutterActor *actor,
|
|||||||
const ClutterColor *color)
|
const ClutterColor *color)
|
||||||
{
|
{
|
||||||
/* just repaint; in the future we might enter in a "focused" status here */
|
/* just repaint; in the future we might enter in a "focused" status here */
|
||||||
clutter_actor_paint (actor);
|
clutter_box_paint (actor);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -78,6 +78,8 @@ clutter_stage_glx_unrealize (ClutterActor *actor)
|
|||||||
|
|
||||||
g_object_get (actor, "offscreen", &was_offscreen, NULL);
|
g_object_get (actor, "offscreen", &was_offscreen, NULL);
|
||||||
|
|
||||||
|
clutter_glx_trap_x_errors ();
|
||||||
|
|
||||||
if (G_UNLIKELY (was_offscreen))
|
if (G_UNLIKELY (was_offscreen))
|
||||||
{
|
{
|
||||||
if (stage_glx->glxpixmap)
|
if (stage_glx->glxpixmap)
|
||||||
@ -109,6 +111,9 @@ clutter_stage_glx_unrealize (ClutterActor *actor)
|
|||||||
glXDestroyContext (stage_glx->xdpy, stage_glx->gl_context);
|
glXDestroyContext (stage_glx->xdpy, stage_glx->gl_context);
|
||||||
stage_glx->gl_context = None;
|
stage_glx->gl_context = None;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
XSync (stage_glx->xdpy, False);
|
||||||
|
clutter_glx_untrap_x_errors ();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user