equal
deleted
inserted
replaced
161 numlockmask = (1 << i); |
161 numlockmask = (1 << i); |
162 } |
162 } |
163 XFreeModifiermap(modmap); |
163 XFreeModifiermap(modmap); |
164 /* select for events */ |
164 /* select for events */ |
165 wa.event_mask = SubstructureRedirectMask | SubstructureNotifyMask |
165 wa.event_mask = SubstructureRedirectMask | SubstructureNotifyMask |
166 | EnterWindowMask | LeaveWindowMask; |
166 | EnterWindowMask | LeaveWindowMask | StructureNotifyMask; |
167 wa.cursor = cursor[CurNormal]; |
167 wa.cursor = cursor[CurNormal]; |
168 XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa); |
168 XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa); |
|
169 XSelectInput(dpy, root, wa.event_mask); |
169 grabkeys(); |
170 grabkeys(); |
170 compileregs(); |
171 compileregs(); |
171 for(ntags = 0; tags[ntags]; ntags++); |
172 for(ntags = 0; tags[ntags]; ntags++); |
172 seltag = emallocz(sizeof(Bool) * ntags); |
173 seltag = emallocz(sizeof(Bool) * ntags); |
173 seltag[0] = True; |
174 seltag[0] = True; |