diff options
author | Luke Smith <luke@lukesmith.xyz> | 2020-05-05 13:27:59 -0400 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2020-05-05 13:27:59 -0400 |
commit | 8f4d5e03d379527d87d3a6d844f0f39e231d73f3 (patch) | |
tree | 7ed429e4ff2b8c5e45130454105c452a5dc940ea | |
parent | b9e9ed13818fa3cb18f421968bb75296157ca61c (diff) |
don't swallow if window floats
-rw-r--r-- | config.h | 1 | ||||
-rw-r--r-- | dwm.c | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -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 */ @@ -485,6 +485,8 @@ swallow(Client *p, Client *c) { if (c->noswallow || c->isterminal) return; + if (!swallowfloating && c->isfloating) + return; detach(c); detachstack(c); |