소스 검색

Show correct utf-8 title

master
fungt Bert 14 년 전
부모
커밋
7fb7b1f4fc
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. +10
    -0
      window.c

+ 10
- 0
window.c 파일 보기

@@ -243,6 +243,16 @@ void win_set_title(win_t *win, const char *title) {

XStoreName(win->env.dpy, win->xwin, title);
XSetIconName(win->env.dpy, win->xwin, title);
XChangeProperty( win->env.dpy, win->xwin,
XInternAtom(win->env.dpy, "_NET_WM_NAME", False),
XInternAtom(win->env.dpy, "UTF8_STRING", False),
8, PropModeReplace, (unsigned char *) title,
strlen(title));
XChangeProperty( win->env.dpy, win->xwin,
XInternAtom(win->env.dpy, "_NET_WM_ICON_NAME", False),
XInternAtom(win->env.dpy, "UTF8_STRING", False),
8, PropModeReplace, (unsigned char *) title,
strlen(title));
}

void win_set_cursor(win_t *win, win_cur_t cursor) {


불러오는 중...
취소
저장