… | |
… | |
1330 | button_release (ev.xbutton); |
1330 | button_release (ev.xbutton); |
1331 | break; |
1331 | break; |
1332 | |
1332 | |
1333 | case ClientMessage: |
1333 | case ClientMessage: |
1334 | if (ev.xclient.format == 32 |
1334 | if (ev.xclient.format == 32 |
1335 | && ev.xclient.message_type == xa[XA_WM_PROTOCOLS] |
1335 | && ev.xclient.message_type == xa[XA_WM_PROTOCOLS]) |
|
|
1336 | { |
1336 | && ev.xclient.data.l[0] == xa[XA_WM_DELETE_WINDOW]) |
1337 | if (ev.xclient.data.l[0] == xa[XA_WM_DELETE_WINDOW]) |
1337 | destroy (); |
1338 | destroy (); |
|
|
1339 | #if ENABLE_EWMH |
|
|
1340 | else if (ev.xclient.data.l[0] == xa[XA_NET_WM_PING]) |
|
|
1341 | XSendEvent (disp, ev.xclient.window = display->root, |
|
|
1342 | False, SubstructureRedirectMask | SubstructureNotifyMask, |
|
|
1343 | &ev); |
|
|
1344 | #endif |
|
|
1345 | } |
1338 | #if ENABLE_XEMBED |
1346 | #if ENABLE_XEMBED |
1339 | else if (ev.xclient.format == 32 |
1347 | else if (ev.xclient.format == 32 && ev.xclient.message_type == xa[XA_XEMBED]) |
1340 | && ev.xclient.message_type == xa[XA_XEMBED]) |
|
|
1341 | { |
1348 | { |
1342 | if (ev.xclient.data.l[1] == XEMBED_FOCUS_IN) |
1349 | if (ev.xclient.data.l[1] == XEMBED_FOCUS_IN) |
1343 | focus_in (); |
1350 | focus_in (); |
1344 | else if (ev.xclient.data.l[1] == XEMBED_FOCUS_OUT) |
1351 | else if (ev.xclient.data.l[1] == XEMBED_FOCUS_OUT) |
1345 | focus_out (); |
1352 | focus_out (); |
… | |
… | |
3876 | tt_printf ("\33]%d;%-.250s%c", XTerm_locale, (options & Opt_insecure) ? locale : "", resp); |
3883 | tt_printf ("\33]%d;%-.250s%c", XTerm_locale, (options & Opt_insecure) ? locale : "", resp); |
3877 | else |
3884 | else |
3878 | { |
3885 | { |
3879 | set_locale (str); |
3886 | set_locale (str); |
3880 | pty.set_utf8_mode (enc_utf8); |
3887 | pty.set_utf8_mode (enc_utf8); |
3881 | # ifdef USE_XIM |
|
|
3882 | im_cb (); |
3888 | init_xlocale (); |
3883 | # endif |
|
|
3884 | } |
3889 | } |
3885 | break; |
3890 | break; |
3886 | #endif |
3891 | #endif |
3887 | |
3892 | |
3888 | #ifdef MENUBAR |
3893 | #ifdef MENUBAR |