diff --git a/src/Widgets/MultitaskingView/TiledWindowContainer.vala b/src/Widgets/MultitaskingView/TiledWindowContainer.vala index 247f120c..4358dc26 100644 --- a/src/Widgets/MultitaskingView/TiledWindowContainer.vala +++ b/src/Widgets/MultitaskingView/TiledWindowContainer.vala @@ -450,6 +450,16 @@ namespace Gala reflow (); } + public void remove_window (Meta.Window window) + { + foreach (var child in get_children ()) { + if ((child as TiledWindow).window == window) { + remove_child (child); + break; + } + } + } + void window_selected_cb (TiledWindow tiled) { window_selected (tiled.window); diff --git a/src/Widgets/MultitaskingView/Workspace.vala b/src/Widgets/MultitaskingView/Workspace.vala index a1d94e82..fb4f20bb 100644 --- a/src/Widgets/MultitaskingView/Workspace.vala +++ b/src/Widgets/MultitaskingView/Workspace.vala @@ -196,6 +196,7 @@ namespace Gala private void remove_window (Meta.Window window) { + window_container.remove_window (window); icon_group.remove_window (window, opened); }