File euclid-wm.c changed (mode: 100644) (index bda8e0e..ff1afc1) |
... |
... |
void addscreen(short h, short w, short x, short y, short n) { |
690 |
690 |
cs = new; |
cs = new; |
691 |
691 |
new->v = make_view(); |
new->v = make_view(); |
692 |
692 |
new->v->idx = 1; |
new->v->idx = 1; |
|
693 |
|
fv = new->v; |
693 |
694 |
} else { |
} else { |
694 |
695 |
struct screen *s = firstscreen; |
struct screen *s = firstscreen; |
695 |
696 |
while (s->next != NULL) { |
while (s->next != NULL) { |
|
... |
... |
void goto_view(struct view *v) { |
1445 |
1446 |
//sets cs->v |
//sets cs->v |
1446 |
1447 |
//and maps the windows of the new cs->v |
//and maps the windows of the new cs->v |
1447 |
1448 |
//it also deletes empty views |
//it also deletes empty views |
1448 |
|
if (v == NULL || v == cs->v) {return;}; |
|
|
1449 |
|
if (v == NULL) {return;}; |
|
1450 |
|
struct screen *s = firstscreen; |
|
1451 |
|
while (s != NULL) { |
|
1452 |
|
if (s->v == v) {return;}; |
|
1453 |
|
s = s->next; |
|
1454 |
|
}; |
1449 |
1455 |
struct track *t = cs->v->ft; |
struct track *t = cs->v->ft; |
1450 |
1456 |
struct cont *c; |
struct cont *c; |
1451 |
1457 |
while (t != NULL) { |
while (t != NULL) { |