… | |
… | |
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; |