mirror of
https://github.com/0intro/wmii
synced 2024-11-22 13:52:17 +03:00
Try harder not to focus doc windows.
This commit is contained in:
parent
0364acb2ab
commit
fb1e4189d4
@ -273,6 +273,7 @@ area_detach(Frame *f) {
|
|||||||
column_detach(f);
|
column_detach(f);
|
||||||
|
|
||||||
if(v->sel->sel == nil && v->floating->sel)
|
if(v->sel->sel == nil && v->floating->sel)
|
||||||
|
if(v->floating->sel->client->nofocus)
|
||||||
v->sel = v->floating;
|
v->sel = v->floating;
|
||||||
|
|
||||||
view_arrange(v);
|
view_arrange(v);
|
||||||
|
@ -36,8 +36,11 @@ float_detach(Frame *f) {
|
|||||||
frame_remove(f);
|
frame_remove(f);
|
||||||
|
|
||||||
if(a->sel == f) {
|
if(a->sel == f) {
|
||||||
|
while(pr && pr->client->nofocus)
|
||||||
|
pr = pr->aprev;
|
||||||
if(!pr)
|
if(!pr)
|
||||||
pr = a->frame;
|
for(pr=a->frame; pr && pr->anext; pr=pr->anext)
|
||||||
|
if(!pr->client->nofocus) break;
|
||||||
a->sel = nil;
|
a->sel = nil;
|
||||||
area_setsel(a, pr);
|
area_setsel(a, pr);
|
||||||
}
|
}
|
||||||
@ -45,7 +48,7 @@ float_detach(Frame *f) {
|
|||||||
|
|
||||||
if(oldsel)
|
if(oldsel)
|
||||||
area_focus(oldsel);
|
area_focus(oldsel);
|
||||||
else if(!a->frame)
|
else if(!a->frame || pr && pr->client->nofocus)
|
||||||
if(sel && sel->frame)
|
if(sel && sel->frame)
|
||||||
area_focus(sel);
|
area_focus(sel);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user