Use the new "background actor" functionality in Mutter
The code to draw the root background has now been moved into Mutter, with added smarts to not draw obscured portions. Remove the old version of the code and clone the Mutter background actor to draw the background in the overview. https://bugzilla.gnome.org/show_bug.cgi?id=634836
This commit is contained in:
@ -98,8 +98,8 @@ function start() {
|
||||
Shell.AppUsage.get_default();
|
||||
|
||||
// The stage is always covered so Clutter doesn't need to clear it; however
|
||||
// the color is used as the default contents for the actor created by
|
||||
// global.create_root_pixmap_actor() so we set it anyways.
|
||||
// the color is used as the default contents for the Mutter root background
|
||||
// actor so set it anyways.
|
||||
global.stage.color = DEFAULT_BACKGROUND_COLOR;
|
||||
global.stage.no_clear_hint = true;
|
||||
|
||||
@ -162,10 +162,6 @@ function start() {
|
||||
}
|
||||
});
|
||||
|
||||
background = global.create_root_pixmap_actor();
|
||||
global.stage.add_actor(background);
|
||||
background.lower_bottom();
|
||||
|
||||
global.gdk_screen.connect('monitors-changed', _relayout);
|
||||
|
||||
ExtensionSystem.init();
|
||||
@ -241,8 +237,6 @@ function _relayout() {
|
||||
panel.actor.set_size(primary.width, Panel.PANEL_HEIGHT);
|
||||
overview.relayout();
|
||||
|
||||
background.set_size(global.screen_width, global.screen_height);
|
||||
|
||||
// To avoid updating the position and size of the workspaces
|
||||
// in the overview, we just hide the overview. The positions
|
||||
// will be updated when it is next shown. We do the same for
|
||||
|
Reference in New Issue
Block a user