Skip to content

Commit

Permalink
WindowSwitcher: Select a window on button release (#1590)
Browse files Browse the repository at this point in the history
  • Loading branch information
lenemter committed Mar 29, 2023
1 parent 4f1084e commit 4223141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Widgets/WindowSwitcher.vala
Expand Up @@ -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 ();
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 4223141

Please sign in to comment.