From 219c7d063823498be22aae46dd024d77b5fb2a58 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 1 Feb 2020 21:57:29 +0100 Subject: patch 8.2.0191: cannot put a terminal in a popup window Problem: Cannot put a terminal in a popup window. Solution: Allow opening a terminal in a popup window. It will always have keyboard focus until closed. --- src/mouse.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mouse.c') diff --git a/src/mouse.c b/src/mouse.c index c94f3228f..5b468d63f 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -1735,6 +1735,11 @@ retnomove: wp = curwin; # endif } +#endif +#if defined(FEAT_PROP_POPUP) && defined(FEAT_TERMINAL) + if (popup_is_popup(curwin) && curbuf->b_term != NULL) + // terminal in popup window: don't jump to another window + return IN_OTHER_WIN; #endif // Only change window focus when not clicking on or dragging the // status line. Do change focus when releasing the mouse button -- cgit v1.2.1