… | |
… | |
227 | return true; |
227 | return true; |
228 | } |
228 | } |
229 | |
229 | |
230 | rxvt_display::~rxvt_display () |
230 | rxvt_display::~rxvt_display () |
231 | { |
231 | { |
|
|
232 | #ifdef POINTER_BLANK |
|
|
233 | XFreeCursor (display, blank_cursor); |
|
|
234 | #endif |
232 | x_ev.stop (); |
235 | x_ev.stop (); |
233 | #ifdef USE_XIM |
236 | #ifdef USE_XIM |
234 | xims.clear (); |
237 | xims.clear (); |
235 | #endif |
238 | #endif |
236 | |
239 | |
… | |
… | |
279 | XNextEvent (display, &xev); |
282 | XNextEvent (display, &xev); |
280 | |
283 | |
281 | #ifdef USE_XIM |
284 | #ifdef USE_XIM |
282 | if (!XFilterEvent (&xev, None)) |
285 | if (!XFilterEvent (&xev, None)) |
283 | { |
286 | { |
284 | |
|
|
285 | if (xev.type == PropertyNotify |
287 | if (xev.type == PropertyNotify |
286 | && xev.xany.window == root |
288 | && xev.xany.window == root |
287 | && xev.xproperty.atom == xa_xim_servers) |
289 | && xev.xproperty.atom == xa_xim_servers) |
288 | im_change_check (); |
290 | im_change_check (); |
289 | #endif |
291 | #endif |
… | |
… | |
491 | ); |
493 | ); |
492 | |
494 | |
493 | return faded; |
495 | return faded; |
494 | } |
496 | } |
495 | |
497 | |
496 | #define LERP(a,b,p) (a * p / 100 + b * (100 - p) / 100) |
498 | #define LERP(a,b,p) (a * p + b * (100 - p)) / 100 |
497 | |
499 | |
498 | rxvt_color |
500 | rxvt_color |
499 | rxvt_color::fade (rxvt_display *display, int percent, rxvt_color &fadeto) |
501 | rxvt_color::fade (rxvt_display *display, int percent, rxvt_color &fadeto) |
500 | { |
502 | { |
501 | percent = 100 - percent; |
503 | percent = 100 - percent; |