diff --git a/src/Widgets/MultitaskingView/IconGroup.vala b/src/Widgets/MultitaskingView/IconGroup.vala index 716a272f..bae7b323 100644 --- a/src/Widgets/MultitaskingView/IconGroup.vala +++ b/src/Widgets/MultitaskingView/IconGroup.vala @@ -210,6 +210,11 @@ namespace Gala content = canvas; dummy_material = new Cogl.Material (); + + var click = new ClickAction (); + click.clicked.connect (() => selected ()); + + add_action (click); } public override void paint () @@ -238,13 +243,6 @@ namespace Gala base.paint (); } - public override bool button_release_event (ButtonEvent event) - { - selected (); - - return false; - } - public void clear () { destroy_all_children ();