layout.c
changeset 949 99ee5c370f94
parent 946 b938876de936
child 956 484245788760
equal deleted inserted replaced
948:4d9c86f8ed65 949:99ee5c370f94
     1 /* See LICENSE file for copyright and license details. */
     1 /* See LICENSE file for copyright and license details. */
     2 #include "dwm.h"
     2 #include "dwm.h"
     3 #include <stdlib.h>
     3 #include <stdlib.h>
       
     4 
       
     5 /* static */
     4 
     6 
     5 typedef struct {
     7 typedef struct {
     6 	const char *symbol;
     8 	const char *symbol;
     7 	void (*arrange)(void);
     9 	void (*arrange)(void);
     8 } Layout;
    10 } Layout;
     9 
    11 
    10 unsigned int blw = 0;
    12 unsigned int blw = 0;
    11 static Layout *lt = NULL;
    13 static Layout *lt = NULL;
    12 
    14 
    13 /* static */
       
    14 
       
    15 static void
    15 static void
    16 floating(void) {
    16 floating(void) { /* default floating layout */
    17 	Client *c;
    17 	Client *c;
    18 
    18 
    19 	for(c = clients; c; c = c->next)
    19 	for(c = clients; c; c = c->next)
    20 		if(isvisible(c))
    20 		if(isvisible(c))
    21 			resize(c, c->x, c->y, c->w, c->h, True);
    21 			resize(c, c->x, c->y, c->w, c->h, True);