fixed view focussing issue in update_views

This commit is contained in:
Anselm R. Garbe 2006-04-13 15:37:52 +02:00
parent fe500a8cd2
commit a126bbafb1
1 changed files with 9 additions and 5 deletions

View File

@ -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();
}