fixed annoying sel_page on detach

This commit is contained in:
garbeam 2005-12-09 03:57:09 +02:00
parent bb40fdde5b
commit 453b849830
2 changed files with 3 additions and 6 deletions

View File

@ -333,14 +333,11 @@ void attach_client(Client * c)
} }
void detach_client(Client *c) { void detach_client(Client *c) {
Page *p;
if (c->frame) if (c->frame)
c->frame->area->layout->detach(c->frame->area, c); c->frame->area->layout->detach(c->frame->area, c);
if (c->destroyed) if (c->destroyed)
destroy_client(c); destroy_client(c);
p = get_sel_page(); draw_page(get_sel_page());
sel_page(p);
draw_page(p);
} }
Client *get_sel_client() Client *get_sel_client()

View File

@ -130,7 +130,7 @@ kbind normal $MODKEY-C-w,y wmirc
kbind normal $MODKEY-t 'extern xterm ''+sb'' -bg ''#000000'' -fg ''#ffffff'' -cr ''#ffffff'' -sl 4000 -fn -artwiz-smoothansi-*-*-*-*-*-*-*-*-*-*-*-*' kbind normal $MODKEY-t 'extern xterm ''+sb'' -bg ''#000000'' -fg ''#ffffff'' -cr ''#ffffff'' -sl 4000 -fn -artwiz-smoothansi-*-*-*-*-*-*-*-*-*-*-*-*'
kbind normal $MODKEY-d 'wmir write /wm/ctl detach' kbind normal $MODKEY-d 'wmir write /wm/ctl detach'
kbind normal $MODKEY-a 'wmir write /wm/ctl attach' kbind normal $MODKEY-a 'wmir write /wm/ctl attach'
kbind normal $MODKEY-S-a 'wmir write /wm/ctl ''detached clients'' kbind normal $MODKEY-S-a 'wmir write /wm/ctl ''detached clients'''
kbind normal $MODKEY-Return 'wmir write /wm/sel/ctl ''select zoomed''' kbind normal $MODKEY-Return 'wmir write /wm/sel/ctl ''select zoomed'''
kbind normal $MODKEY-C-y 'wmir write /wm/ctl new' kbind normal $MODKEY-C-y 'wmir write /wm/ctl new'
kbind normal $MODKEY-u 'wmir write /wm/sel/layout/sel/frame/sel/locked 0' kbind normal $MODKEY-u 'wmir write /wm/sel/layout/sel/frame/sel/locked 0'
@ -163,4 +163,4 @@ selstyle /menu/sstyle >[2]/dev/null
# MISC # MISC
xsetroot -solid black xsetroot -solid black
status & status&