don't swallow if window floats
This commit is contained in:
parent
b9e9ed1381
commit
8f4d5e03d3
2 changed files with 3 additions and 0 deletions
1
config.h
1
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 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
2
dwm.c
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue