mirror of https://github.com/0intro/wmii
fixed view focussing issue in update_views
This commit is contained in:
parent
fe500a8cd2
commit
a126bbafb1
|
@ -364,13 +364,17 @@ update_views()
|
|||
destroy_view(v);
|
||||
}
|
||||
|
||||
if(view.size && view.data[sel] != old) {
|
||||
focus_view(view.data[sel]);
|
||||
return;
|
||||
}
|
||||
else if(old) {
|
||||
if(old) {
|
||||
if(view.data[sel] != old) {
|
||||
focus_view(old);
|
||||
return;
|
||||
}
|
||||
focus_client(sel_client_of_view(old));
|
||||
draw_clients();
|
||||
}
|
||||
else if(view.size) {
|
||||
focus_view(view.data[sel]);
|
||||
return;
|
||||
}
|
||||
update_view_bars();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue