mirror of
https://github.com/elementary/gala.git
synced 2024-09-11 15:15:39 +03:00
WindowSwitcher: Select a window on button release (#1590)
This commit is contained in:
parent
4f1084e011
commit
4223141b4c
@ -124,7 +124,7 @@ namespace Gala {
|
||||
container = new Clutter.Actor ();
|
||||
container.layout_manager = layout;
|
||||
container.reactive = true;
|
||||
container.button_press_event.connect (container_mouse_press);
|
||||
container.button_release_event.connect (container_mouse_release);
|
||||
container.motion_event.connect (container_motion_event);
|
||||
|
||||
var rgba = InternalUtils.get_theme_accent_color ();
|
||||
@ -460,7 +460,7 @@ namespace Gala {
|
||||
return true;
|
||||
}
|
||||
|
||||
private bool container_mouse_press (Clutter.ButtonEvent event) {
|
||||
private bool container_mouse_release (Clutter.ButtonEvent event) {
|
||||
if (opened && event.button == Gdk.BUTTON_PRIMARY) {
|
||||
close_switcher (event.time);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user