소스 검색

only open and close display if output type is dwm

master
Aaron Marcher 8 년 전
committed by Aaron Marcher (drkhsh)
부모
커밋
2e012d533e
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. +4
    -3
      slstatus.c

+ 4
- 3
slstatus.c 파일 보기

@@ -633,7 +633,9 @@ main(int argc, char *argv[])
sigaction(SIGINT, &act, 0);
sigaction(SIGTERM, &act, 0);

dpy = XOpenDisplay(NULL);
if (!oflag) {
dpy = XOpenDisplay(NULL);
}

while (!done) {
status_string[0] = '\0';
@@ -671,9 +673,8 @@ main(int argc, char *argv[])

if (!oflag) {
set_status(NULL);
XCloseDisplay(dpy);
}

XCloseDisplay(dpy);

return 0;
}

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