ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvttoolkit.C
(Generate patch)

Comparing rxvt-unicode/src/rxvttoolkit.C (file contents):
Revision 1.10 by root, Wed Dec 29 19:59:46 2004 UTC vs.
Revision 1.12 by root, Mon Jan 17 00:59:24 2005 UTC

82 delete obj; 82 delete obj;
83 } 83 }
84} 84}
85 85
86template<class T> 86template<class T>
87refcache<T>::~refcache () 87void refcache<T>::clear ()
88{ 88{
89 while (this->size ()) 89 while (this->size ())
90 put (*this->begin ()); 90 put (*this->begin ());
91} 91}
92 92
166 sockaddr_un sa; 166 sockaddr_un sa;
167 socklen_t sl = sizeof (sa); 167 socklen_t sl = sizeof (sa);
168 168
169 if (!getsockname (fd, (sockaddr *)&sa, &sl)) 169 if (!getsockname (fd, (sockaddr *)&sa, &sl))
170 is_local = sa.sun_family == AF_LOCAL; 170 is_local = sa.sun_family == AF_LOCAL;
171#endif
172
173#ifdef POINTER_BLANK
174 XColor blackcolour;
175 blackcolour.red = 0;
176 blackcolour.green = 0;
177 blackcolour.blue = 0;
178 Font f = XLoadFont (display, "fixed");
179 blank_cursor = XCreateGlyphCursor (display, f, f, ' ', ' ',
180 &blackcolour, &blackcolour);
181 XUnloadFont (display, f);
171#endif 182#endif
172 183
173#ifdef PREFER_24BIT 184#ifdef PREFER_24BIT
174 /* 185 /*
175 * If depth is not 24, look for a 24bit visual. 186 * If depth is not 24, look for a 24bit visual.
203} 214}
204 215
205rxvt_display::~rxvt_display () 216rxvt_display::~rxvt_display ()
206{ 217{
207 x_ev.stop (); 218 x_ev.stop ();
219#ifdef USE_XIM
220 xims.clear ();
221#endif
208 222
209 if (display) 223 if (display)
210 XCloseDisplay (display); 224 XCloseDisplay (display);
211} 225}
212 226

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines