prepared new snap

This commit is contained in:
Anselm R. Garbe 2006-01-19 19:55:08 +02:00
parent 8b20e63cd8
commit 97032c01a8
4 changed files with 7 additions and 9 deletions

View File

@ -24,6 +24,8 @@ alloc_layout(Page * p, char *layout)
name = "float";
snprintf(buf, MAX_BUF, "/%s/layout/%s", p->file[P_PREFIX]->name, name);
l->file[L_PREFIX] = ixp_create(ixps, buf);
snprintf(buf, MAX_BUF, "/%s/layout/%s/name", p->file[P_PREFIX]->name, name);
l->file[L_NAME] = wmii_create_ixpfile(ixps, buf, layout);
snprintf(buf, MAX_BUF, "/%s/layout/%s/frame", p->file[P_PREFIX]->name, name);
l->file[L_FRAME_PREFIX] = ixp_create(ixps, buf);
snprintf(buf, MAX_BUF, "/%s/layout/%s/frame/sel",

View File

@ -238,15 +238,10 @@ toggle_layout(void *obj, char *arg)
{
Page *p = obj;
if(p->sel == p->managed)
p->sel = p->floating;
if(!p->managed->def || (p->sel == p->managed))
focus_layout(p->floating);
else
p->sel = p->managed;
if(!p->sel->def)
p->sel = p->floating;
focus_layout(p->sel);
focus_layout(p->managed);
}
Page *

View File

@ -24,6 +24,7 @@ enum {
L_PREFIX,
L_FRAME_PREFIX,
L_SEL_FRAME,
L_NAME,
L_CTL,
L_LAST
};

View File

@ -113,7 +113,7 @@ wmiir write /wm/event/clientupdate \
wmiir write /wm/event/pageupdate \
'wmiir write /bar/'^$plab^'/data `{wmiir read /wm/sel/name} &&' ^\
'wmiir write /bar/'^$klab^'/data `{wmiir read /keys/lookup|sed ''s|/mode/||''} && ' ^\
'wmiir write /bar/'^$llab^'/data `{wmiir read /wm/sel/layoutname}'
'wmiir write /bar/'^$llab^'/data `{wmiir read /wm/sel/layout/sel/name}'
for(page in `{wmiir read /wm | grep '^[0-9]'}) {
framesconf /wm/$page/layout/float/frame