소스 검색

Gray window background

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

+ 8
- 1
window.c 파일 보기

@@ -32,6 +32,8 @@ XColor bgcol;

void win_open(win_t *win) {
XClassHint *classhint;
XSetWindowAttributes attr;
unsigned long mask;

if (win == NULL)
return;
@@ -54,9 +56,14 @@ void win_open(win_t *win) {
win->x = (scrw - win->w) / 2;
win->y = (scrh - win->h) / 2;

attr.backing_store = NotUseful;
attr.background_pixel = bgcol.pixel;
attr.save_under = False;
mask = CWBackingStore | CWBackPixel | CWSaveUnder;

win->xwin = XCreateWindow(dpy, RootWindow(dpy, scr),
win->x, win->y, win->w, win->h, 0, DefaultDepth(dpy, scr), InputOutput,
DefaultVisual(dpy, scr), 0, NULL);
DefaultVisual(dpy, scr), mask, &attr);
if (win->xwin == None)
FATAL("could not create window");


||||||
x
 
000:0
불러오는 중...
취소
저장