From b725ac4c73526b4b54da6711e46d9ff0a7bfef3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 24 Feb 2020 22:39:37 +0100 Subject: [PATCH] wayland: terminal_from_surface(): use term_surface_kind() --- wayland.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wayland.c b/wayland.c index 478d87b4..d67bd268 100644 --- a/wayland.c +++ b/wayland.c @@ -1033,11 +1033,8 @@ struct terminal * wayl_terminal_from_surface(struct wayland *wayl, struct wl_surface *surface) { tll_foreach(wayl->terms, it) { - if (it->item->window->surface == surface || - it->item->window->search_surface == surface) - { + if (term_surface_kind(it->item, surface) != TERM_SURF_NONE) return it->item; - } } assert(false);