blob: 85f52a71a030a05e1d4b1c23675ac1f3b4c494aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
diff --git a/src/Widgets/IndicatorEntry.vala b/src/Widgets/IndicatorEntry.vala
index 2ad9776..f68051d 100644
--- a/src/Widgets/IndicatorEntry.vala
+++ b/src/Widgets/IndicatorEntry.vala
@@ -59,6 +59,18 @@ public class Wingpanel.Widgets.IndicatorEntry : Gtk.MenuItem {
this.add (revealer);
revealer.add (display_widget);
+ if (indicator_widget == null) {
+ this.button_press_event.connect ((e) => {
+ popover_manager.close ();
+ display_widget.button_press_event (e);
+
+ return Gdk.EVENT_PROPAGATE;
+ });
+ set_reveal (base_indicator.visible);
+
+ return;
+ }
+
if (base_indicator.visible) {
popover_manager.register_indicator (this);
}
|