changed order of selecting input at root window
db1d62e1
1 file(s) · +4 −4
| 211 | 211 | cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing); |
|
| 212 | 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 | 218 | grabkeys(); |
|
| 215 | 219 | initrregs(); |
|
| 216 | 220 | ||
| 249 | 253 | drawstatus(); |
|
| 250 | 254 | ||
| 251 | 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 | 257 | scan(); |
|
| 258 | 258 | ||