diff --git a/sway/commands/swap.c b/sway/commands/swap.c index 697de226..a7f9691b 100644 --- a/sway/commands/swap.c +++ b/sway/commands/swap.c @@ -202,8 +202,8 @@ static bool test_id(struct sway_container *container, void *data) { static bool test_mark(struct sway_container *container, void *mark) { if (container->marks->length) { - return !list_seq_find(container->marks, - (int (*)(const void *, const void *))strcmp, mark); + return list_seq_find(container->marks, + (int (*)(const void *, const void *))strcmp, mark) != -1; } return false; }