mirror of
https://github.com/elementary/gala.git
synced 2024-11-23 20:07:21 +03:00
make sure windows are removed from a workspace when they are moved to another
This commit is contained in:
parent
3e6519fefd
commit
4debed4fed
@ -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);
|
||||
|
@ -196,6 +196,7 @@ namespace Gala
|
||||
|
||||
private void remove_window (Meta.Window window)
|
||||
{
|
||||
window_container.remove_window (window);
|
||||
icon_group.remove_window (window, opened);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user