don't swallow if window floats

This commit is contained in:
Luke Smith 2020-05-05 13:27:59 -04:00
parent b9e9ed1381
commit 8f4d5e03d3
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252
2 changed files with 3 additions and 0 deletions

View file

@ -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 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 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 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 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 showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */ static const int topbar = 1; /* 0 means bottom bar */

2
dwm.c
View file

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