mirror of
https://github.com/elementary/gala.git
synced 2024-12-30 04:34:17 +03:00
windowoverview: close windows with middle click
This commit is contained in:
parent
7eb054c107
commit
7aa2923e99
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user