… | |
… | |
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 |
… | |
… | |
276 | free (selection.clip_text); |
276 | free (selection.clip_text); |
277 | free (locale); |
277 | free (locale); |
278 | free (v_buffer); |
278 | free (v_buffer); |
279 | |
279 | |
280 | delete selection_req; |
280 | delete selection_req; |
|
|
281 | |
|
|
282 | if (env && memcmp (env, envv->begin (), envv->size () * sizeof (char *))) |
|
|
283 | rxvt_warn ("env has been modified, probably as a result of a lib calling setenv.\n"); |
|
|
284 | |
|
|
285 | delete env; |
281 | |
286 | |
282 | delete envv; |
287 | delete envv; |
283 | delete argv; |
288 | delete argv; |
284 | |
289 | |
285 | #ifdef KEYSYM_RESOURCE |
290 | #ifdef KEYSYM_RESOURCE |
… | |
… | |
1370 | unsigned long fg, bg; |
1375 | unsigned long fg, bg; |
1371 | const char *p; |
1376 | const char *p; |
1372 | char **s; |
1377 | char **s; |
1373 | XIMStyles *xim_styles; |
1378 | XIMStyles *xim_styles; |
1374 | |
1379 | |
1375 | set_environ (envv); |
1380 | set_environ (env); |
1376 | |
1381 | |
1377 | if (! ((p = XSetLocaleModifiers (modifiers)) && *p)) |
1382 | if (!((p = XSetLocaleModifiers (modifiers)) && *p)) |
1378 | return false; |
1383 | return false; |
1379 | |
1384 | |
1380 | input_method = display->get_xim (locale, modifiers); |
1385 | input_method = display->get_xim (locale, modifiers); |
1381 | if (input_method == NULL) |
1386 | if (input_method == NULL) |
1382 | return false; |
1387 | return false; |