summaryrefslogtreecommitdiffstats
path: root/cmd-swap-window.c
diff options
context:
space:
mode:
authornicm <nicm>2017-02-09 15:04:53 +0000
committernicm <nicm>2017-02-09 15:04:53 +0000
commitc6a3446398648fc2cc3682c351b57b9bfe5bc5f0 (patch)
tree7bd0ac8c644eb3037e1fd9633e6a1ad517fa3d01 /cmd-swap-window.c
parent8de4c15dfa9d15d259d295b6f2e121c980082c79 (diff)
Instead of numbering session groups, give them a name which may be given
to -t instead of a target session. Also allow them to contain only one session.
Diffstat (limited to 'cmd-swap-window.c')
-rw-r--r--cmd-swap-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-swap-window.c b/cmd-swap-window.c
index 0a93fa6e..38252745 100644
--- a/cmd-swap-window.c
+++ b/cmd-swap-window.c
@@ -52,11 +52,11 @@ cmd_swap_window_exec(struct cmd *self, struct cmdq_item *item)
wl_src = item->state.sflag.wl;
src = item->state.sflag.s;
- sg_src = session_group_find(src);
+ sg_src = session_group_contains(src);
wl_dst = item->state.tflag.wl;
dst = item->state.tflag.s;
- sg_dst = session_group_find(dst);
+ sg_dst = session_group_contains(dst);
if (src != dst && sg_src != NULL && sg_dst != NULL &&
sg_src == sg_dst) {