--- rxvt-unicode/src/rxvttoolkit.h 2007/11/11 04:08:00 1.34 +++ rxvt-unicode/src/rxvttoolkit.h 2007/12/04 14:50:44 1.36 @@ -258,11 +258,6 @@ #ifdef USE_XIM struct im_watcher : rxvt_watcher, callback { - template - im_watcher (O object, M method) - : callback (object, method) - { } - void start (rxvt_display *display) { display->reg (this); @@ -278,11 +273,6 @@ struct xevent_watcher : rxvt_watcher, callback { Window window; - template - xevent_watcher (O object, M method) - : callback (object, method) - { } - void start (rxvt_display *display, Window window) { this->window = window; @@ -338,5 +328,13 @@ void fade (rxvt_screen *screen, int percent, rxvt_color &result, const rgba &to = rgba (0, 0, 0)); }; +#if TRACE_PIXMAPS +Pixmap trace_XCreatePixmap (const char *file, int line, Display *dpy, Window r, unsigned int w, unsigned int h, unsigned int d); +void trace_XFreePixmap (const char *file, int line, Display *dpy, Pixmap p); + +# define XCreatePixmap(dpy,r,w,h,d) trace_XCreatePixmap (__FILE__,__LINE__,dpy,r,w,h,d) +# define XFreePixmap(dpy,p) trace_XFreePixmap (__FILE__,__LINE__,dpy,p) +#endif + #endif