diff options
author | Anselm R. Garbe | 2007-08-13 19:13:54 +0200 |
---|---|---|
committer | Anselm R. Garbe | 2007-08-13 19:13:54 +0200 |
commit | 759a701360ed943cda8429e7fcbd8a0e2d147ca6 (patch) | |
tree | 119c967992dc3ee716649fe3392d688352948015 /client.c | |
parent | 2fe5c2f9295ed2207e883b763982dc091da5e494 (diff) | |
download | aur-759a701360ed943cda8429e7fcbd8a0e2d147ca6.tar.gz |
made Layout a static struct in layout.c, added some convenience getters in layout.c, now lt->arrange accesses are not possible anymore, arrange() is the super-arrange function which sets up all layouts
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -230,13 +230,14 @@ manage(Window w, XWindowAttributes *wa) { setclientstate(c, IconicState); c->isbanned = True; focus(c); - lt->arrange(); + arrange(); } void resize(Client *c, int x, int y, int w, int h, Bool sizehints) { double dx, dy, max, min, ratio; XWindowChanges wc; + if(sizehints) { if(c->minay > 0 && c->maxay > 0 && (h - c->baseh) > 0 && (w - c->basew) > 0) { dx = (double)(w - c->basew); @@ -297,12 +298,12 @@ resize(Client *c, int x, int y, int w, int h, Bool sizehints) { void togglefloating(const char *arg) { - if(!sel || lt->arrange == floating) + if(!sel || isfloating()) return; sel->isfloating = !sel->isfloating; if(sel->isfloating) resize(sel, sel->x, sel->y, sel->w, sel->h, True); - lt->arrange(); + arrange(); } void @@ -334,7 +335,7 @@ unmanage(Client *c) { XSync(dpy, False); XSetErrorHandler(xerror); XUngrabServer(dpy); - lt->arrange(); + arrange(); } void |