mirror of
https://github.com/brl/mutter.git
synced 2025-04-07 02:43:47 +00:00
x11/stage: Use symbolic constants for source function
And make sure to use the clutter_threads_add_timeout(), so that the function is called under the Clutter lock.
This commit is contained in:
parent
a4d571aaf9
commit
71323b8bfc
@ -904,7 +904,7 @@ clipped_redraws_cool_off_cb (void *data)
|
|||||||
|
|
||||||
stage_x11->clipped_redraws_cool_off = 0;
|
stage_x11->clipped_redraws_cool_off = 0;
|
||||||
|
|
||||||
return FALSE;
|
return G_SOURCE_REMOVE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ClutterTranslateReturn
|
static ClutterTranslateReturn
|
||||||
@ -993,7 +993,8 @@ clutter_stage_x11_translate_event (ClutterEventTranslator *translator,
|
|||||||
g_source_remove (stage_x11->clipped_redraws_cool_off);
|
g_source_remove (stage_x11->clipped_redraws_cool_off);
|
||||||
|
|
||||||
stage_x11->clipped_redraws_cool_off =
|
stage_x11->clipped_redraws_cool_off =
|
||||||
g_timeout_add_seconds (1, clipped_redraws_cool_off_cb,
|
clutter_threads_add_timeout (1000,
|
||||||
|
clipped_redraws_cool_off_cb,
|
||||||
stage_x11);
|
stage_x11);
|
||||||
|
|
||||||
/* Queue a relayout - we want glViewport to be called
|
/* Queue a relayout - we want glViewport to be called
|
||||||
|
Loading…
x
Reference in New Issue
Block a user