aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/rio/main.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-08-11 03:38:16 +0000
committerrsc <devnull@localhost>2005-08-11 03:38:16 +0000
commitd52fb463eeda2168b7b0135d758a1e2a57be9af7 (patch)
tree3bad38971b4a86a4558381b61204c8294670c597 /src/cmd/rio/main.c
parentb5b71ffbaee0a7a34b93f22541effe76a54c39b5 (diff)
downloadplan9port-d52fb463eeda2168b7b0135d758a1e2a57be9af7.tar.gz
plan9port-d52fb463eeda2168b7b0135d758a1e2a57be9af7.tar.bz2
plan9port-d52fb463eeda2168b7b0135d758a1e2a57be9af7.zip
Fix crash reported by Andrey.
Make focus-follows-mouse easier to find for those who want it (cough, Ron Minnich, cough).
Diffstat (limited to 'src/cmd/rio/main.c')
-rw-r--r--src/cmd/rio/main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/cmd/rio/main.c b/src/cmd/rio/main.c
index bc43a99f..d20c3a00 100644
--- a/src/cmd/rio/main.c
+++ b/src/cmd/rio/main.c
@@ -40,6 +40,7 @@ int scrolling;
int num_screens;
int solidsweep = 0;
int numvirtuals = 0;
+int ffm = 0;
Atom exit_rio;
Atom restart_rio;
@@ -95,6 +96,10 @@ main(int argc, char *argv[])
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 @@ initscreen(ScreenInfo *s, int i, int background)
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);