summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.h1
-rw-r--r--dwm.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/config.h b/config.h
index bfa9e2f..09cce39 100644
--- a/config.h
+++ b/config.h
@@ -7,6 +7,7 @@ static const unsigned int gappih = 20; /* horiz inner gap between windo
static const unsigned int gappiv = 10; /* vert inner gap between windows */
static const unsigned int gappoh = 10; /* horiz outer gap between windows and screen edge */
static const unsigned int gappov = 30; /* vert outer gap between windows and screen edge */
+static const int swallowfloating = 0; /* 1 means swallow floating windows by default */
static const int smartgaps = 0; /* 1 means no outer gap when there is only one window */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
diff --git a/dwm.c b/dwm.c
index a6968ff..33873cf 100644
--- a/dwm.c
+++ b/dwm.c
@@ -485,6 +485,8 @@ swallow(Client *p, Client *c)
{
if (c->noswallow || c->isterminal)
return;
+ if (!swallowfloating && c->isfloating)
+ return;
detach(c);
detachstack(c);