mirror of
https://github.com/0intro/wmii
synced 2024-12-24 04:16:50 +03:00
prepared new snap
This commit is contained in:
parent
8b20e63cd8
commit
97032c01a8
@ -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",
|
||||
|
@ -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 *
|
||||
|
@ -24,6 +24,7 @@ enum {
|
||||
L_PREFIX,
|
||||
L_FRAME_PREFIX,
|
||||
L_SEL_FRAME,
|
||||
L_NAME,
|
||||
L_CTL,
|
||||
L_LAST
|
||||
};
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user