*/
#include "dwm.h"
+unsigned int master = MASTER;
+unsigned int nmaster = NMASTER;
+
/* static */
static void
togglemax(Client *c) {
XEvent ev;
-
+
if(c->isfixed)
return;
-
if((c->ismax = !c->ismax)) {
c->rx = c->x;
c->ry = c->y;
if(!(c = nextmanaged(c->next)))
return;
detach(c);
- if(clients)
- clients->prev = c;
- c->next = clients;
- clients = c;
+ attach(c);
focus(c);
arrange();
}