Close window overview when all windows have been closed

This commit is contained in:
Tom Beckmann 2012-09-12 17:26:05 +02:00
parent 792a823ab4
commit df17ee3b5a

View File

@ -593,13 +593,12 @@ namespace Gala
//called when a window has been closed
void reposition (WindowThumb removed)
{
if (get_children ().length () == 0) {
close (false);
return;
}
var children = get_children ().copy ();
children.remove (removed);
calculate_places (children);
if (get_children ().length () == 0)
close (false);
}
void selected (Window window)