summaryrefslogtreecommitdiffhomepage
path: root/patch/swallow.c
diff options
context:
space:
mode:
Diffstat (limited to 'patch/swallow.c')
-rw-r--r--patch/swallow.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/patch/swallow.c b/patch/swallow.c
index 397c0e8..744eba3 100644
--- a/patch/swallow.c
+++ b/patch/swallow.c
@@ -8,15 +8,15 @@
static int scanner;
static xcb_connection_t *xcon;
-void
+int
swallow(Client *p, Client *c)
{
Client *s;
if (c->noswallow > 0 || c->isterminal)
- return;
+ return 0;
if (c->noswallow < 0 && !swallowfloating && c->isfloating)
- return;
+ return 0;
detach(c);
detachstack(c);
@@ -40,6 +40,8 @@ swallow(Client *p, Client *c)
arrange(p->mon);
configure(p);
updateclientlist();
+
+ return 1;
}
void