X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=client.c;h=d180278f3604436f9f25d9f7499122e5cf5cdac7;hb=2122e39ce152d9ce9eadef70a6151097d5c10484;hp=3d9cd40263272c6c0a11285ac5dc9104f6227674;hpb=352cae4380713949d3800ebcda7aff3bb5ab9efc;p=dwm.git diff --git a/client.c b/client.c index 3d9cd40..d180278 100644 --- a/client.c +++ b/client.c @@ -153,7 +153,7 @@ focus(Client *c) { } void -killclient(Arg arg) { +killclient(const char *arg) { if(!sel) return; if(isprotodel(sel)) @@ -203,8 +203,8 @@ manage(Window w, XWindowAttributes *wa) { updatetitle(c); for(t = clients; t && t->win != trans; t = t->next); settags(c, t); - if(!c->isversatile) - c->isversatile = (t != NULL) || c->isfixed; + if(!c->isfloating) + c->isfloating = (t != NULL) || c->isfixed; attach(c); attachstack(c); c->isbanned = True; @@ -285,10 +285,10 @@ resize(Client *c, int x, int y, int w, int h, Bool sizehints) { } void -toggleversatile(Arg arg) { - if(!sel || lt->arrange == versatile) +togglefloating(const char *arg) { + if(!sel || lt->arrange == floating) return; - sel->isversatile = !sel->isversatile; + sel->isfloating = !sel->isfloating; lt->arrange(); }