26 lines
653 B
C
26 lines
653 B
C
|
/* See LICENSE file for copyright and license details. */
|
||
|
|
||
|
#include "tag.h"
|
||
|
#include "layouts/floating.h"
|
||
|
|
||
|
/* extern */
|
||
|
extern Client *clients; /* global client */
|
||
|
|
||
|
void
|
||
|
floating(Display *disp __attribute__ ((unused)), jdwm_config *jdwmconf)
|
||
|
{ /* default floating layout */
|
||
|
Client *c;
|
||
|
|
||
|
for(c = clients; c; c = c->next)
|
||
|
if(isvisible(c, jdwmconf->ntags))
|
||
|
{
|
||
|
if(c->ftview)
|
||
|
{
|
||
|
resize(c, c->rx, c->ry, c->rw, c->rh, True);
|
||
|
c->ftview = False;
|
||
|
}
|
||
|
else
|
||
|
resize(c, c->x, c->y, c->w, c->h, True);
|
||
|
}
|
||
|
}
|