small fix, still an oddifty on send next

This commit is contained in:
Anselm R. Garbe 2006-03-02 15:54:32 +01:00
parent e23ca5ca59
commit 0728d68133
3 changed files with 6 additions and 6 deletions

View File

@ -97,7 +97,7 @@ select_area(Area *a, char *arg)
void
sendto_area(Area *to, Client *c)
{
detach_client_area(c);
detach_client_area(c, True);
attach_client2area(to, c);
focus_client(c);
}
@ -135,7 +135,7 @@ attach_client2area(Area *a, Client *c)
}
void
detach_client_area(Client *c)
detach_client_area(Client *c, Bool ignfetch)
{
Area *a = c->area;
Page *p = a->page;
@ -144,7 +144,7 @@ detach_client_area(Client *c)
a->nclient--;
if(a->sel >= a->nclient)
a->sel = 0;
if(i) { /* area */
if(i && !ignfetch) { /* area */
if(a->capacity && (a->nclient < a->capacity)) {
for(++i; i < p->narea; i++) {
Area *tmp = p->area[i];
@ -174,7 +174,7 @@ match_capacity(Area *a)
{
while(a->nclient > a->capacity) {
Client *c = a->client[a->nclient - 1];
detach_client_area(c);
detach_client_area(c, True);
attach_client(c);
}
}

View File

@ -388,7 +388,7 @@ detach_client(Client *c, Bool unmap)
reparent_client(c, root, c->rect.x, c->rect.y);
XUnmapWindow(dpy, c->frame.win);
}
detach_client_area(c);
detach_client_area(c, False);
}
c->area = nil;
if(c->revert)

View File

@ -197,7 +197,7 @@ void update_area_geometry(Area *a);
void select_area(Area *a, char *arg);
void sendto_area(Area *to, Client *c);
void attach_client2area(Area *a, Client *c);
void detach_client_area(Client *c);
void detach_client_area(Client *c, Bool ignfetch);
void arrange_page(Page *p, Bool update_area_geometry);
void arrange_area(Area *a);
void resize_area(Client *c, XRectangle *r, XPoint *pt);