… | |
… | |
227 | return true; |
227 | return true; |
228 | } |
228 | } |
229 | |
229 | |
230 | rxvt_display::~rxvt_display () |
230 | rxvt_display::~rxvt_display () |
231 | { |
231 | { |
|
|
232 | if (!display) |
|
|
233 | return; |
|
|
234 | |
|
|
235 | #ifdef POINTER_BLANK |
|
|
236 | XFreeCursor (display, blank_cursor); |
|
|
237 | #endif |
232 | x_ev.stop (); |
238 | x_ev.stop (); |
233 | #ifdef USE_XIM |
239 | #ifdef USE_XIM |
234 | xims.clear (); |
240 | xims.clear (); |
235 | #endif |
241 | #endif |
236 | |
|
|
237 | if (display) |
|
|
238 | XCloseDisplay (display); |
242 | XCloseDisplay (display); |
239 | } |
243 | } |
240 | |
244 | |
241 | #ifdef USE_XIM |
245 | #ifdef USE_XIM |
242 | void rxvt_display::im_change_cb () |
246 | void rxvt_display::im_change_cb () |
243 | { |
247 | { |