summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.c b/main.c
index ef1a211..56f7984 100644
--- a/main.c
+++ b/main.c
@@ -233,6 +233,10 @@ init_screen (screen_info *s, int screen_num)
XMapWindow (dpy, s->key_window);
grab_keys (s);
+ /* Create the input window. */
+ s->input_window = XCreateSimpleWindow (dpy, s->root, 0, 0,
+ 1, 1, 1, fg_color.pixel, bg_color.pixel);
+ XSelectInput (dpy, s->input_window, KeyPressMask);
scanwins (s);
}