… | |
… | |
15 | * - extensive modifications |
15 | * - extensive modifications |
16 | * Copyright (c) 2003-2010 Marc Lehmann <schmorp@schmorp.de> |
16 | * Copyright (c) 2003-2010 Marc Lehmann <schmorp@schmorp.de> |
17 | * |
17 | * |
18 | * This program is free software; you can redistribute it and/or modify |
18 | * This program is free software; you can redistribute it and/or modify |
19 | * it under the terms of the GNU General Public License as published by |
19 | * it under the terms of the GNU General Public License as published by |
20 | * the Free Software Foundation; either version 2 of the License, or |
20 | * the Free Software Foundation; either version 3 of the License, or |
21 | * (at your option) any later version. |
21 | * (at your option) any later version. |
22 | * |
22 | * |
23 | * This program is distributed in the hope that it will be useful, |
23 | * This program is distributed in the hope that it will be useful, |
24 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
24 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
25 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
25 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
… | |
… | |
239 | |
239 | |
240 | #if USE_XIM |
240 | #if USE_XIM |
241 | im_destroy (); |
241 | im_destroy (); |
242 | #endif |
242 | #endif |
243 | scrollBar.destroy (); |
243 | scrollBar.destroy (); |
|
|
244 | |
|
|
245 | if (gc) |
244 | if (gc) XFreeGC (dpy, gc); |
246 | XFreeGC (dpy, gc); |
245 | |
247 | |
246 | delete drawable; |
248 | delete drawable; |
|
|
249 | |
247 | // destroy all windows |
250 | // destroy all windows |
248 | if (parent) |
251 | if (parent) |
249 | XDestroyWindow (dpy, parent); |
252 | XDestroyWindow (dpy, parent); |
250 | |
253 | |
251 | for (int i = 0; i < TOTAL_COLORS; i++) |
254 | for (int i = 0; i < TOTAL_COLORS; i++) |
… | |
… | |
1369 | char **s; |
1372 | char **s; |
1370 | XIMStyles *xim_styles; |
1373 | XIMStyles *xim_styles; |
1371 | |
1374 | |
1372 | set_environ (envv); |
1375 | set_environ (envv); |
1373 | |
1376 | |
1374 | if (! ((p = XSetLocaleModifiers (modifiers)) && *p)) |
1377 | if (!((p = XSetLocaleModifiers (modifiers)) && *p)) |
1375 | return false; |
1378 | return false; |
1376 | |
1379 | |
1377 | input_method = display->get_xim (locale, modifiers); |
1380 | input_method = display->get_xim (locale, modifiers); |
1378 | if (input_method == NULL) |
1381 | if (input_method == NULL) |
1379 | return false; |
1382 | return false; |
… | |
… | |
1687 | rxvt_term::update_background () |
1690 | rxvt_term::update_background () |
1688 | { |
1691 | { |
1689 | if (update_background_ev.is_active ()) |
1692 | if (update_background_ev.is_active ()) |
1690 | return; |
1693 | return; |
1691 | |
1694 | |
1692 | bg_flags &= BG_INHIBIT_RENDER; |
|
|
1693 | |
|
|
1694 | if (!mapped) |
|
|
1695 | return; |
|
|
1696 | |
|
|
1697 | ev_tstamp to_wait = 0.5 - (ev::now () - bg_valid_since); |
1695 | ev_tstamp to_wait = 0.5 - (ev::now () - bg_valid_since); |
1698 | |
1696 | |
1699 | if (to_wait <= 0.) |
1697 | if (to_wait <= 0.) |
1700 | bg_render (); |
1698 | bg_render (); |
1701 | else |
1699 | else |