mirror of
https://github.com/elementary/gala.git
synced 2024-11-28 04:05:22 +03:00
Don't hold a reference of WindowManager
This commit is contained in:
parent
f585ca7fe2
commit
6c6132f9e0
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user