make sure windows are removed from a workspace when they are moved to another

This commit is contained in:
Tom Beckmann 2014-06-18 16:01:54 +02:00
parent 3e6519fefd
commit 4debed4fed
2 changed files with 11 additions and 0 deletions

View File

@ -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);

View File

@ -196,6 +196,7 @@ namespace Gala
private void remove_window (Meta.Window window)
{
window_container.remove_window (window);
icon_group.remove_window (window, opened);
}