GNOME Bugzilla – Bug 664028
Do no use the Clutter default stage
Last modified: 2011-12-15 21:06:23 UTC
There's no reason for using the default stage singleton, and clutter_stage_get_default() has been deprecated in Clutter 1.9/1.10.
Created attachment 201366 [details] [review] Do no use the Clutter default stage Mutter has no reason whatsoever for using the default stage: the compositor owns the stage, and it already track the stage singleton instance.
main issue: gnome-shell assumes that the default stage is set and used, so we cannot just apply this patch while gnome-shell uses clutter_stage_get_default() as well, otherwise we'll have two stages (one from mutter, one from the plugin).
Review of attachment 201366 [details] [review]: We want separate screens to have separate stages, right? So this change makes sense from that perspective
yes, it does, but it cannot be committed until we make gnome-shell only use the Stage that is created by the plugin. currently, gnome-shell uses the default stage during its initialization process, before the compositor plugin actually has a chance to initialize itself. I opened bug 664052 for tracking that particular issue.
Review of attachment 201366 [details] [review]: This will not work. The stage needs to be realized, since we do a bunch of raw X calls directly underneath.
Created attachment 201860 [details] [review] Do not use the default stage
Review of attachment 201860 [details] [review]: looks good to me
Review of attachment 201860 [details] [review]: Looks fine to commit to me (in sync with the gnome-shell change, of course)
Attachment 201860 [details] pushed as 264c555 - Do not use the default stage