Fix crash reported by Andrey.
Make focus-follows-mouse easier to find for
those who want it (cough, Ron Minnich, cough).
diff --git a/src/cmd/rio/main.c b/src/cmd/rio/main.c
index bc43a99..d20c3a0 100644
--- a/src/cmd/rio/main.c
+++ b/src/cmd/rio/main.c
@@ -40,6 +40,7 @@
int num_screens;
int solidsweep = 0;
int numvirtuals = 0;
+int ffm = 0;
Atom exit_rio;
Atom restart_rio;
@@ -95,6 +96,10 @@
background = 1;
else if(strcmp(argv[i], "-debug") == 0)
debug++;
+ /*
+ else if(strcmp(argv[i], "-ffm") == 0)
+ ffm++;
+ */
else if(strcmp(argv[i], "-font") == 0 && i+1<argc){
i++;
fname = argv[i];
@@ -335,8 +340,8 @@
attr.cursor = s->arrow;
attr.event_mask = SubstructureRedirectMask
| SubstructureNotifyMask | ColormapChangeMask
- | ButtonPressMask | ButtonReleaseMask | PropertyChangeMask |
- KeyPressMask;
+ | ButtonPressMask | ButtonReleaseMask | PropertyChangeMask
+ | KeyPressMask | EnterWindowMask;
mask = CWCursor|CWEventMask;
XChangeWindowAttributes(dpy, s->root, mask, &attr);
XSync(dpy, False);