changeset: 1869:db5ee5db3550
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Tue Feb 13 14:46:32 2007 -0500
summary: Fix scaling of first column bug. Fix focus of first view bug.
diff -r 9079387b15bf -r db5ee5db3550 area.c
--- a/area.c Tue Feb 13 13:45:36 2007 -0500
+++ b/area.c Tue Feb 13 14:46:32 2007 -0500
@@ -34,7 +34,7 @@ create_area(View *v, Area *pos, uint w)
col_num = max((area_num - 1), 0);
if(w == 0) {
- if(area_num) {
+ if(col_num) {
w = newcolw_of_view(v);
if (w == 0)
w = screen->rect.width / (col_num + 1);
diff -r 9079387b15bf -r db5ee5db3550 view.c
--- a/view.c Tue Feb 13 13:45:36 2007 -0500
+++ b/view.c Tue Feb 13 14:46:32 2007 -0500
@@ -86,10 +86,13 @@ destroy_view(View *v) {
for(i=&view; *i; i=&(*i)->next)
if(*i == v) break;
*i = v->next;
- if(screen->sel == v)
- for(screen->sel=view; screen->sel && screen->sel->next; screen->sel=screen->sel->next)
- if(screen->sel->next == *i) break;
write_event("DestroyTag %s\n", v->name);
+ if(v == screen->sel) {
+ for(v=view; v && v->next; v=v->next)
+ if(v->next == *i) break;
+ if(v)
+ focus_view(screen, v);
+ }
free(v);
}
Received on Tue Feb 13 2007 - 20:48:15 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:17 UTC