commit 400768385c8d2a3595084f9d70e31add2a26f6eb
parent 1b248269c6e37104ec5e2dcea8bc032d5ac4142c
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Thu, 27 Apr 2006 08:40:50 +0200
adding debug info for c->sel problematic
Diffstat:
1 file changed, 24 insertions(+), 2 deletions(-)
diff --git a/cmd/wm/view.c b/cmd/wm/view.c
@@ -374,12 +374,34 @@ update_views()
Client *c = client.data[i];
for(j = 0; j < view.size; j++) {
if(is_view_of(c, view.data[j]) || strchr(c->tags, '*')) {
- if(!is_of_view(view.data[j], c))
+ if(!is_of_view(view.data[j], c)) {
+ unsigned int tmp = c->sel;
+ Frame *f = c->frame.size ? c->frame.data[c->sel] : nil;
+ if(f)
+ fprintf(stderr, "ABf=%x %s %d %d %d %d\n",
+ f, c->tags, f->rect.x, f->rect.y, f->rect.width, f->rect.height);
+
attach_to_view(view.data[j], c);
+
+ c->sel = tmp;
+ f = c->frame.data[c->sel];
+ fprintf(stderr, "AEf=%x %s %d %d %d %d\n",
+ f, c->tags, f->rect.x, f->rect.y, f->rect.width, f->rect.height);
+ }
}
else {
- if(is_of_view(view.data[j], c))
+ if(is_of_view(view.data[j], c)) {
+ Frame *f = c->frame.data[c->sel];
+ fprintf(stderr, "DBf=%x %s %d %d %d %d\n",
+ f, c->tags, f->rect.x, f->rect.y, f->rect.width, f->rect.height);
+
detach_from_view(view.data[j], c);
+
+ f = c->frame.size ? c->frame.data[c->sel] : nil;
+ if(f)
+ fprintf(stderr, "DEf=%x %s %d %d %d %d\n",
+ f, c->tags, f->rect.x, f->rect.y, f->rect.width, f->rect.height);
+ }
}
}
}