From d4ae97b50e0dd6d2ca816103a9215f7a244f4139 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Thu, 2 May 2019 12:12:57 -0400 Subject: [PATCH] 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 --- src/bin/e_int_menus.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/bin/e_int_menus.c b/src/bin/e_int_menus.c index abaa83bb5..c7b00306d 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);