diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2014-11-20 10:30:09 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-11-20 10:30:09 +0100 |
commit | d1779d07691ea722d5c39e010434c6f20405fcdc (patch) | |
tree | a787ef471f8afbb9de133aaa8c89165adef6b24e | |
parent | 8f0a3b11b8afeb8f8dd4b1cb72ddb9c1458f2bb3 (diff) | |
download | fbida-d1779d07691ea722d5c39e010434c6f20405fcdc.tar.gz |
silence xdnd debug msgs
-rw-r--r-- | xdnd.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -126,7 +126,8 @@ find_window(Widget widget, int wx, int wy, int rx, int ry) nchildren = 0; XtVaGetValues(widget,XtNchildren,&children, XtNnumChildren,&nchildren,NULL); - fprintf(stderr,"findwindow %s\n",XtName(widget)); + if (xdnd_debug) + fprintf(stderr,"findwindow %s\n",XtName(widget)); for (i = nchildren-1; i >= 0; i--) { XtVaGetValues(children[i],XtNx,&x,XtNy,&y, XtNwidth,&w,XtNheight,&h,NULL); @@ -142,10 +143,12 @@ find_window(Widget widget, int wx, int wy, int rx, int ry) break; } if (found) { - fprintf(stderr," more: %s\n",XtName(found)); + if (xdnd_debug) + fprintf(stderr," more: %s\n",XtName(found)); return find_window(found,wx+x,wy+y,rx,ry); } - fprintf(stderr," done: %s\n",XtName(widget)); + if (xdnd_debug) + fprintf(stderr," done: %s\n",XtName(widget)); return widget; } |