Mercurial > dwm-meillo
comparison main.c @ 222:770233c1df06
applied Sanders tiny patches
author | Anselm R.Garbe <arg@10ksloc.org> |
---|---|
date | Tue, 08 Aug 2006 09:30:45 +0200 |
parents | 51ac019cf587 |
children | f4f5d000ce7a |
comparison
equal
deleted
inserted
replaced
221:87a7dbc994e3 | 222:770233c1df06 |
---|---|
238 XDefineCursor(dpy, barwin, cursor[CurNormal]); | 238 XDefineCursor(dpy, barwin, cursor[CurNormal]); |
239 XMapRaised(dpy, barwin); | 239 XMapRaised(dpy, barwin); |
240 | 240 |
241 dc.drawable = XCreatePixmap(dpy, root, sw, bh, DefaultDepth(dpy, screen)); | 241 dc.drawable = XCreatePixmap(dpy, root, sw, bh, DefaultDepth(dpy, screen)); |
242 dc.gc = XCreateGC(dpy, root, 0, 0); | 242 dc.gc = XCreateGC(dpy, root, 0, 0); |
243 | |
244 strcpy(stext, "dwm-"VERSION); | |
243 drawstatus(); | 245 drawstatus(); |
244 | 246 |
245 issel = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask); | 247 issel = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask); |
246 | 248 |
247 wa.event_mask = SubstructureRedirectMask | EnterWindowMask | LeaveWindowMask; | 249 wa.event_mask = SubstructureRedirectMask | EnterWindowMask | LeaveWindowMask; |
248 wa.cursor = cursor[CurNormal]; | 250 wa.cursor = cursor[CurNormal]; |
249 XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa); | 251 XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa); |
250 | 252 |
251 strcpy(stext, "dwm-"VERSION); | |
252 scan(); | 253 scan(); |
253 | 254 |
254 /* main event loop, also reads status text from stdin */ | 255 /* main event loop, also reads status text from stdin */ |
255 while(running) { | 256 while(running) { |
256 FD_ZERO(&rd); | 257 FD_ZERO(&rd); |