… | |
… | |
944 | return true; |
944 | return true; |
945 | } |
945 | } |
946 | |
946 | |
947 | void rxvt_term::set_string_property (Atom prop, const char *str, int len) |
947 | void rxvt_term::set_string_property (Atom prop, const char *str, int len) |
948 | { |
948 | { |
949 | // TODO: SMART_WINDOW_TITLE |
|
|
950 | XChangeProperty (display->display, parent[0], |
949 | XChangeProperty (display->display, parent[0], |
951 | prop, XA_STRING, 8, PropModeReplace, |
950 | prop, XA_STRING, 8, PropModeReplace, |
952 | (const unsigned char *)str, len >= 0 ? len : strlen (str)); |
951 | (const unsigned char *)str, len >= 0 ? len : strlen (str)); |
953 | } |
952 | } |
954 | |
953 | |
955 | void rxvt_term::set_utf8_property (Atom prop, const char *str, int len) |
954 | void rxvt_term::set_utf8_property (Atom prop, const char *str, int len) |
956 | { |
955 | { |
957 | // TODO: SMART_WINDOW_TITLE |
|
|
958 | wchar_t *ws = rxvt_mbstowcs (str, len); |
956 | wchar_t *ws = rxvt_mbstowcs (str, len); |
959 | char *s = rxvt_wcstoutf8 (ws); |
957 | char *s = rxvt_wcstoutf8 (ws); |
960 | |
958 | |
961 | XChangeProperty (display->display, parent[0], |
959 | XChangeProperty (display->display, parent[0], |
962 | prop, xa[XA_UTF8_STRING], 8, PropModeReplace, |
960 | prop, xa[XA_UTF8_STRING], 8, PropModeReplace, |