--- rxvt-unicode/src/rxvttoolkit.h 2012/06/03 15:50:22 1.59 +++ rxvt-unicode/src/rxvttoolkit.h 2012/06/06 20:22:04 1.63 @@ -180,7 +180,7 @@ ///////////////////////////////////////////////////////////////////////////// -#ifdef USE_XIM +#if USE_XIM struct rxvt_xim : refcounted { void destroy (); @@ -220,8 +220,9 @@ enum { DISPLAY_HAS_RENDER = 1 << 0, - DISPLAY_HAS_RENDER_MUL = 1 << 1, - DISPLAY_HAS_RENDER_CONV = 1 << 2, + DISPLAY_HAS_RENDER_10 = 1 << 1, + DISPLAY_HAS_RENDER_MUL = 1 << 2, + DISPLAY_HAS_RENDER_CONV = 1 << 3, }; struct rxvt_display : refcounted @@ -231,7 +232,7 @@ ev::prepare flush_ev; void flush_cb (ev::prepare &w, int revents); ev::io x_ev ; void x_cb (ev::io &w, int revents); -#ifdef USE_XIM +#if USE_XIM refcache xims; vector imw; @@ -264,12 +265,13 @@ } Atom atom (const char *name); + Pixmap get_pixmap_property (Atom property); void set_selection_owner (rxvt_term *owner, bool clipboard); void reg (xevent_watcher *w); void unreg (xevent_watcher *w); -#ifdef USE_XIM +#if USE_XIM void reg (im_watcher *w); void unreg (im_watcher *w); @@ -278,7 +280,7 @@ #endif }; -#ifdef USE_XIM +#if USE_XIM struct im_watcher : rxvt_watcher, callback { void start (rxvt_display *display) @@ -354,8 +356,8 @@ bool alloc (rxvt_screen *screen, const rgba &color); void free (rxvt_screen *screen); - void get (rgba &color); - void get (XColor &color); + void get (rgba &color) const; + void get (XColor &color) const; bool set (rxvt_screen *screen, const char *name); bool set (rxvt_screen *screen, const rgba &color);