Lines Matching refs:ws
48 Window ws[2]; /* from-window, to-window */
82 ws[wi++] = w;
97 ws[wi++] = -1;
120 if(ws[0] == -1) {
121 ws[0] = RootWindow(dpy, screen);
123 if(ws[1] == -1) {
124 ws[1] = RootWindow(dpy, screen);
127 if(ws[0] == ws[1]) {
135 if(ws[0]) {
136 XGetWindowAttributes(dpy, ws[0], &wattr);
143 printf("XSelectInput 0x%x %lx\n", (unsigned int)ws[0], event_mask);
144 XSelectInput(dpy, ws[0], event_mask);
156 event.xkey.window = ws[1];
157 XSendEvent(dpy, ws[1], False, KeyPressMask, &event);
162 event.xbutton.window = ws[1];
163 XSendEvent(dpy, ws[1], False, KeyPressMask, &event);