X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=view.c;h=5c651480329193524d2e03d9d8b8952e372a0231;hb=0c97b21b6120137858f390f061d17f065b41d26e;hp=e7d7a99f82dc33abfcf8d59ff363c590f0b2fecf;hpb=321e8d51edb8fe433e8e2ce8d5463c6999cc0576;p=dwm.git diff --git a/view.c b/view.c index e7d7a99..5c65148 100644 --- a/view.c +++ b/view.c @@ -91,7 +91,7 @@ dotile(void) { c->h = wah - 2 * BORDERPX; } else if(i == 0) { /* master window */ - c->w = waw - stackw - 2 * BORDERPX; + c->w = mpx - 2 * BORDERPX; c->h = wah - 2 * BORDERPX; th = wah / (n - 1); } @@ -201,6 +201,14 @@ restack(void) { } void +togglefloat(Arg *arg) { + if (!sel) + return; + sel->isfloat = !sel->isfloat; + arrange(); +} + +void togglemode(Arg *arg) { arrange = (arrange == dofloat) ? dotile : dofloat; if(sel)