main.c
changeset 867 067a7784150e
parent 865 018c38468422
child 878 d2ae55f83f9f
equal deleted inserted replaced
866:27410727480a 867:067a7784150e
   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;