summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-05-02 12:12:57 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-05-02 12:12:57 -0400
commitd4ae97b50e0dd6d2ca816103a9215f7a244f4139 (patch)
tree7d3f446ab8c0991026d1806e5a093fbf6e077964
parentea865d765125469b70c9177f16c08d5ae65c1dbe (diff)
downloadenlightenment-d4ae97b50e0dd6d2ca816103a9215f7a244f4139.tar.gz
Lost Windows removal from wayland
Summary: On wayland there is no need for a Lost Windows option in the menu. So remove that. Test Plan: Compile and run on wayland. Reviewers: raster, bu5hm4n, devilhorns Subscribers: cedric, zmike Tags: #enlightenment-git Differential Revision: https://phab.enlightenment.org/D8804
-rw-r--r--src/bin/e_int_menus.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/bin/e_int_menus.c b/src/bin/e_int_menus.c
index abaa83bb53..c7b00306d3 100644
--- a/src/bin/e_int_menus.c
+++ b/src/bin/e_int_menus.c
@@ -214,13 +214,18 @@ e_int_menus_main_new(void)
e_menu_item_submenu_set(mi, subm);
e_object_data_set(E_OBJECT(subm), dat);
- subm = e_int_menus_lost_clients_new();
- e_object_data_set(E_OBJECT(subm), dat);
- dat->lost_clients = subm;
- mi = e_menu_item_new(m);
- e_menu_item_label_set(mi, _("Lost Windows"));
- e_util_menu_item_theme_icon_set(mi, "preferences-windows-lost");
- e_menu_item_submenu_set(mi, subm);
+#ifndef HAVE_WAYLAND
+ if (e_comp->comp_type == E_PIXMAP_TYPE_X)
+ {
+ subm = e_int_menus_lost_clients_new();
+ e_object_data_set(E_OBJECT(subm), dat);
+ dat->lost_clients = subm;
+ mi = e_menu_item_new(m);
+ e_menu_item_label_set(mi, _("Lost Windows"));
+ e_util_menu_item_theme_icon_set(mi, "preferences-windows-lost");
+ e_menu_item_submenu_set(mi, subm);
+ }
+#endif
l = _e_int_menus_augmentation_find("main/3");
if (l) _e_int_menus_augmentation_add(m, l);