Skip to content

Commit 06a3ee7

Browse files
authored
Indicator: claim and reset middle click gesture (#361)
1 parent 970ad0d commit 06a3ee7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Indicator.vala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@ public class Network.Indicator : Wingpanel.Indicator {
5858

5959
if (is_in_session) {
6060
gesture_click = new Gtk.GestureMultiPress (display_widget) {
61-
button = button = Gdk.BUTTON_MIDDLE
61+
button = Gdk.BUTTON_MIDDLE
6262
};
63-
6463
gesture_click.pressed.connect (() => {
6564
airplane_action.activate (null);
65+
gesture_click.set_state (CLAIMED);
66+
gesture_click.reset ();
6667
});
6768
}
6869

0 commit comments

Comments
 (0)