Don't hold a reference of WindowManager

This commit is contained in:
Rico Tzschichholz 2014-06-24 11:54:26 +02:00
parent f585ca7fe2
commit 6c6132f9e0
2 changed files with 3 additions and 4 deletions

View File

@ -226,7 +226,7 @@ namespace Gala
void add_workspace (int num)
{
var workspace = new WorkspaceClone (wm, screen.get_workspace_by_index (num));
var workspace = new WorkspaceClone (screen.get_workspace_by_index (num));
workspace.window_selected.connect (window_selected);
workspace.selected.connect (activate_workspace);

View File

@ -56,7 +56,6 @@ namespace Gala
public signal void window_selected (Window window);
public signal void selected (bool close_view);
public WindowManager wm { get; construct; }
public Workspace workspace { get; construct; }
public IconGroup icon_group { get; private set; }
public TiledWindowContainer window_container { get; private set; }
@ -77,9 +76,9 @@ namespace Gala
uint hover_activate_timeout = 0;
public WorkspaceClone (WindowManager wm, Workspace workspace)
public WorkspaceClone (Workspace workspace)
{
Object (wm: wm, workspace: workspace);
Object (workspace: workspace);
}
construct