dwm

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 8f4d5e03d379527d87d3a6d844f0f39e231d73f3
parent b9e9ed13818fa3cb18f421968bb75296157ca61c
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Tue,  5 May 2020 13:27:59 -0400

don't swallow if window floats

Diffstat:
Mconfig.h | 1+
Mdwm.c | 2++
2 files changed, 3 insertions(+), 0 deletions(-)

diff --git 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 @@ -485,6 +485,8 @@ swallow(Client *p, Client *c) { if (c->noswallow || c->isterminal) return; + if (!swallowfloating && c->isfloating) + return; detach(c); detachstack(c);