fixed some issues

This commit is contained in:
garbeam 2005-11-19 20:26:17 +02:00
parent caaad63c0d
commit 148f4aba01
3 changed files with 6 additions and 6 deletions

View File

@ -250,7 +250,7 @@ draw_client(Client * c)
&& f->clients[f->sel] == c);
} else
draw_tab(f, c->files[C_NAME]->content, i * tw, 0, tw, tabh,
is_selected(f) && f->clients[f->sel] == c);
ISSELFRAME(f) && f->clients[f->sel] == c);
}
void
@ -269,12 +269,12 @@ draw_clients(Frame * f)
if (!f->clients[i + 1]) {
int xoff = i * tw;
draw_tab(f, f->clients[i]->files[C_NAME]->content,
xoff, 0, frect->width - xoff, tabh, is_selected(f)
xoff, 0, frect->width - xoff, tabh, ISSELFRAME(f)
&& f->clients[f->sel] == f->clients[i]);
break;
} else
draw_tab(f, f->clients[i]->files[C_NAME]->content,
i * tw, 0, tw, tabh, is_selected(f)
i * tw, 0, tw, tabh, ISSELFRAME(f)
&& f->clients[f->sel] == f->clients[i]);
}
XSync(dpy, False);

View File

@ -396,8 +396,9 @@ icons(void *obj, char *cmd)
static void
_close_client(void *obj, char *cmd)
{
if (clients && clients[sel_client])
close_client(clients[sel_client]);
Frame *f = pages ? SELFRAME(pages[sel]) : 0;
if (f->clients[f->sel])
close_client(f->clients[f->sel]);
}
static void

View File

@ -207,7 +207,6 @@ run()
pages = 0;
layouts = 0;
sel = 0;
sel_client = 0;
init_atoms();
init_cursors();