aboutsummaryrefslogtreecommitdiff
path: root/src/desktop.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop.vala')
-rw-r--r--src/desktop.vala11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/desktop.vala b/src/desktop.vala
index 50ed129..cab782b 100644
--- a/src/desktop.vala
+++ b/src/desktop.vala
@@ -179,7 +179,16 @@ class Desktop: Profile
{
item = new MenuItem (device.name, null);
item.set_attribute_value ("icon", device.icon.serialize());
- item.set_submenu (submenu);
+
+ if (Environment.get_variable("MIR_SOCKET") != null)
+ {
+ item.set_submenu (submenu);
+ }
+ else
+ {
+ item.set_section (submenu);
+ }
+
device_section.append_item (item);
}
}