diff options
| author | bakkeby <[email protected]> | 2020-09-12 14:21:51 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-09-12 14:21:51 +0200 |
| commit | 819d06c5c9de496a41026e6077661c7b91877e96 (patch) | |
| tree | 952e0a3201be532a0da834f10aedcdc413e78e09 /patch/swallow.c | |
| parent | 7b477bc7dba3c29c7393e4f37963ee9f62c9c817 (diff) | |
| download | dwm-flexipatch-819d06c5c9de496a41026e6077661c7b91877e96.tar.gz dwm-flexipatch-819d06c5c9de496a41026e6077661c7b91877e96.zip | |
swallow: arrange monitor if window is not swallowed
Diffstat (limited to 'patch/swallow.c')
| -rw-r--r-- | patch/swallow.c | 8 |
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 |
