mirror of
https://github.com/0intro/wmii
synced 2024-11-22 05:42:05 +03:00
fixed some issues
This commit is contained in:
parent
caaad63c0d
commit
148f4aba01
@ -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);
|
||||
|
@ -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
|
||||
|
@ -207,7 +207,6 @@ run()
|
||||
pages = 0;
|
||||
layouts = 0;
|
||||
sel = 0;
|
||||
sel_client = 0;
|
||||
|
||||
init_atoms();
|
||||
init_cursors();
|
||||
|
Loading…
Reference in New Issue
Block a user