aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/win.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2016-03-06 15:34:36 +0100
committerBoris Faure <billiob@gmail.com>2016-03-06 15:34:36 +0100
commit07dc1fee17345d47b97218017861e5980184822f (patch)
tree273cd2cbc33d81e67be5f6c051487530a9f16b76 /src/bin/win.c
parentadd ctrl-t to default configuration (diff)
downloadterminology-07dc1fee17345d47b97218017861e5980184822f.tar.gz
win: set split->last_focus when swallowing in a split
Diffstat (limited to 'src/bin/win.c')
-rw-r--r--src/bin/win.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/win.c b/src/bin/win.c
index 426e8ae..df3c234 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -1258,6 +1258,9 @@ _split_swallow(Term_Container *tc, Term_Container *orig,
assert (orig && (orig == split->tc1 || orig == split->tc2));
+ if (split->last_focus == orig)
+ split->last_focus = new_child;
+
o = orig->get_evas_object(orig);
evas_object_hide(o);