cleanup
This commit is contained in:
parent
a699daf6af
commit
e9254adc8f
2 changed files with 5 additions and 5 deletions
|
|
@ -229,7 +229,7 @@ dump_revert(void)
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
for(c = current; c; c = c->revert){
|
for(c = current; c; c = c->revert){
|
||||||
fprintf(stderr, "%s(%x:%d)", c->label ? c->label : "?", c->window, c->state);
|
fprintf(stderr, "%s(%x:%d)", c->label ? c->label : "?", (uint)c->window, c->state);
|
||||||
if(i++ > 100)
|
if(i++ > 100)
|
||||||
break;
|
break;
|
||||||
if(c->revert)
|
if(c->revert)
|
||||||
|
|
@ -246,7 +246,7 @@ dump_clients(void)
|
||||||
Client *c;
|
Client *c;
|
||||||
|
|
||||||
for(c = clients; c; c = c->next)
|
for(c = clients; c; c = c->next)
|
||||||
fprintf(stderr, "w 0x%x parent 0x%x @ (%d, %d)\n", c->window, c->parent, c->x, c->y);
|
fprintf(stderr, "w 0x%x parent 0x%x @ (%d, %d)\n", (uint)c->window, (uint)c->parent, c->x, c->y);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -263,7 +263,7 @@ shuffle(int up)
|
||||||
for(l=&clients; (*l)->next; l=&(*l)->next)
|
for(l=&clients; (*l)->next; l=&(*l)->next)
|
||||||
;
|
;
|
||||||
c = *l;
|
c = *l;
|
||||||
*l = nil;
|
*l = 0;
|
||||||
c->next = clients;
|
c->next = clients;
|
||||||
clients = c;
|
clients = c;
|
||||||
XMapRaised(dpy, c->parent);
|
XMapRaised(dpy, c->parent);
|
||||||
|
|
|
||||||
|
|
@ -85,9 +85,9 @@ graberror(char *f, int err)
|
||||||
void
|
void
|
||||||
dotrace(char *s, Client *c, XEvent *e)
|
dotrace(char *s, Client *c, XEvent *e)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "rio: %s: c=0x%x", s, c);
|
fprintf(stderr, "rio: %s: c=%p", s, c);
|
||||||
if(c)
|
if(c)
|
||||||
fprintf(stderr, " x %d y %d dx %d dy %d w 0x%x parent 0x%x", c->x, c->y, c->dx, c->dy, c->window, c->parent);
|
fprintf(stderr, " x %d y %d dx %d dy %d w 0x%x parent 0x%x", c->x, c->y, c->dx, c->dy, (uint)c->window, (uint)c->parent);
|
||||||
#ifdef DEBUG_EV
|
#ifdef DEBUG_EV
|
||||||
if(e){
|
if(e){
|
||||||
fprintf(stderr, "\n\t");
|
fprintf(stderr, "\n\t");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue