WindowSwitcher: Select a window on button release (#1590)

This commit is contained in:
Leo 2023-03-29 13:52:26 +09:00 committed by GitHub
parent 4f1084e011
commit 4223141b4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}