mirror of
https://github.com/0intro/wmii
synced 2024-12-22 19:36:51 +03:00
fixed annoying sel_page on detach
This commit is contained in:
parent
bb40fdde5b
commit
453b849830
@ -333,14 +333,11 @@ void attach_client(Client * c)
|
||||
}
|
||||
|
||||
void detach_client(Client *c) {
|
||||
Page *p;
|
||||
if (c->frame)
|
||||
c->frame->area->layout->detach(c->frame->area, c);
|
||||
if (c->destroyed)
|
||||
destroy_client(c);
|
||||
p = get_sel_page();
|
||||
sel_page(p);
|
||||
draw_page(p);
|
||||
draw_page(get_sel_page());
|
||||
}
|
||||
|
||||
Client *get_sel_client()
|
||||
|
4
rc/wmirc
4
rc/wmirc
@ -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-d 'wmir write /wm/ctl detach'
|
||||
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-C-y 'wmir write /wm/ctl new'
|
||||
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
|
||||
xsetroot -solid black
|
||||
status &
|
||||
status&
|
||||
|
Loading…
Reference in New Issue
Block a user