diff options
| -rw-r--r-- | wayland.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -862,11 +862,15 @@ struct terminal * wayl_terminal_from_surface(struct wayland *wayl, struct wl_surface *surface) { tll_foreach(wayl->terms, it) { - if (it->item->window->surface == surface) + if (it->item->window->surface == surface || + it->item->window->search_surface == surface) + { return it->item; + } } assert(false); + LOG_WARN("surface %p doesn't map to a terminal", surface); return NULL; } |
