Ubuntu – Why does Ubuntu use two window managers: Compiz and Metacity

compizmetacity

I'm a bit confused about this one. Does Ubuntu use two different window managers at the same time?

Best Answer

They're not used at the same time but I can see the cause of the confusion.

  • Metacity handles lightweight composting and also does window decorations.
  • Compiz only does the window management garb and hands off window decoration to gtk-window-decorator or emerald. By default gtk-window-decorator is used to emulate the current Metacity theme but it also has its own cairo-based themes.

So while they might look similar in some aspects, apart from the actual theme files used, they're very different underlying code.

But why have both at all?

Because Compiz needs better hardware to run. Lots of people still don't have hardware that supports DRI, so Ubuntu includes both to give everybody a desktop.