windowoverview: close windows with middle click

This commit is contained in:
Tom Beckmann 2012-10-11 18:13:43 +02:00
parent 7eb054c107
commit 7aa2923e99

View File

@ -130,8 +130,15 @@ namespace Gala
public override bool button_press_event (ButtonEvent event)
{
get_parent ().set_child_above_sibling (this, null);
selected (window);
switch (event.button) {
case 1:
get_parent ().set_child_above_sibling (this, null);
selected (window);
break;
case 2:
close_window ();
break;
}
return true;
}