Compiz code for taking over as composite manager: XSetSelectionOwner (dpy, cmSnAtom, newCmSnOwner, wmSnTimestamp);
if (XGetSelectionOwner (dpy, cmSnAtom) != newCmSnOwner)
{ compLogMessage (d, "core", CompLogLevelError, "Could not acquire compositing manager " "selection on screen %d display \"%s\"", i, DisplayString (dpy));
continue;
}
It waits for metacity to give up the WM_S0 selection before running this bit so I'm not sure what exactly is going on but I'm pretty sure it's on metacity's side.
Compiz code for taking over as composite manager:
XSetSelectionO wner (dpy, cmSnAtom, newCmSnOwner, wmSnTimestamp);
if (XGetSelectionOwner (dpy, cmSnAtom) != newCmSnOwner)
compLogMes sage (d, "core", CompLogLevelError,
"Could not acquire compositing manager "
"selection on screen %d display \"%s\"",
i, DisplayString (dpy));
{
}
It waits for metacity to give up the WM_S0 selection before running this bit so I'm not sure what exactly is going on but I'm pretty sure it's on metacity's side.