version 1.4 | | version 1.5 |
---|
| | |
swa.colormap=XCreateColormap(dpy,RootWindow(dpy,visinfo->screen),visinfo->visual,AllocNone); | | swa.colormap=XCreateColormap(dpy,RootWindow(dpy,visinfo->screen),visinfo->visual,AllocNone); |
//create window | | //create window |
swa.border_pixel=0; | | swa.border_pixel=0; |
swa.event_mask=ExposureMask | StructureNotifyMask | KeyPressMask; | | swa.event_mask=ExposureMask | StructureNotifyMask | KeyPressMask | KeyReleaseMask| ButtonPressMask | ButtonReleaseMask | PointerMotionMask; |
// swa.event_mask=ExposureMask | StructureNotifyMask; | | // swa.event_mask=ExposureMask | StructureNotifyMask; |
win = XCreateWindow(dpy,RootWindow(dpy,visinfo->screen),0,0,x,y,0,visinfo->depth,InputOutput,visinfo->visual,CWBorderPixel|CWColormap|CWEventMask,&swa); | | win = XCreateWindow(dpy,RootWindow(dpy,visinfo->screen),0,0,x,y,0,visinfo->depth,InputOutput,visinfo->visual,CWBorderPixel|CWColormap|CWEventMask,&swa); |
// XStoreName(dpy,win,DESCENT_VERSION " " D1X_DATE); | | // XStoreName(dpy,win,DESCENT_VERSION " " D1X_DATE); |