comparison main.c @ 281:0d0444d32c59

changed order of selecting input at root window
author Anselm R.Garbe <arg@10ksloc.org>
date Mon, 14 Aug 2006 16:21:16 +0200
parents c1187ddcd7f7
children 8e6e0aa5e2ae
comparison
equal deleted inserted replaced
280:87cdbff4962e 281:0d0444d32c59
209 /* init cursors */ 209 /* init cursors */
210 cursor[CurNormal] = XCreateFontCursor(dpy, XC_left_ptr); 210 cursor[CurNormal] = XCreateFontCursor(dpy, XC_left_ptr);
211 cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing); 211 cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing);
212 cursor[CurMove] = XCreateFontCursor(dpy, XC_fleur); 212 cursor[CurMove] = XCreateFontCursor(dpy, XC_fleur);
213 213
214 wa.event_mask = SubstructureRedirectMask | EnterWindowMask | LeaveWindowMask;
215 wa.cursor = cursor[CurNormal];
216 XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa);
217
214 grabkeys(); 218 grabkeys();
215 initrregs(); 219 initrregs();
216 220
217 for(ntags = 0; tags[ntags]; ntags++); 221 for(ntags = 0; tags[ntags]; ntags++);
218 seltag = emallocz(sizeof(Bool) * ntags); 222 seltag = emallocz(sizeof(Bool) * ntags);
247 251
248 strcpy(stext, "dwm-"VERSION); 252 strcpy(stext, "dwm-"VERSION);
249 drawstatus(); 253 drawstatus();
250 254
251 issel = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask); 255 issel = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask);
252
253 wa.event_mask = SubstructureRedirectMask | EnterWindowMask | LeaveWindowMask;
254 wa.cursor = cursor[CurNormal];
255 XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa);
256 256
257 scan(); 257 scan();
258 258
259 /* main event loop, also reads status text from stdin */ 259 /* main event loop, also reads status text from stdin */
260 XSync(dpy, False); 260 XSync(dpy, False);