awesome/layouts/floating.c

26 lines
690 B
C
Raw Normal View History

2007-09-05 20:15:00 +02:00
/* See LICENSE file for copyright and license details. */
#include "tag.h"
#include "layouts/floating.h"
/* extern */
extern Client *clients; /* global client */
void
2007-09-10 12:06:54 +02:00
floating(Display *disp __attribute__ ((unused)), awesome_config *awesomeconf)
2007-09-05 20:15:00 +02:00
{ /* default floating layout */
Client *c;
for(c = clients; c; c = c->next)
2007-09-10 12:06:54 +02:00
if(isvisible(c, awesomeconf->selected_tags, awesomeconf->ntags))
2007-09-05 20:15:00 +02:00
{
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);
}
}