diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/desktop.vala | 11 |
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); } } |