summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.c b/main.c
index 0a39c15..2df9683 100644
--- a/main.c
+++ b/main.c
@@ -211,6 +211,10 @@ main(int argc, char *argv[])
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
@@ -250,10 +254,6 @@ main(int argc, char *argv[])
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 256
253 wa.event_mask = SubstructureRedirectMask | EnterWindowMask | LeaveWindowMask;
254 wa.cursor = cursor[CurNormal];
255 XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa);
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 */