aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2011-01-22 22:03:49 -0500
committerDave Reisner <d@falconindy.com>2011-01-23 09:46:25 -0500
commit13eb5ac929eb99955b4c58192b0aed467db1a4a2 (patch)
treeed2a95c5bc9de82c7d7a549fce591fe4fc7e200f
parent8183b5a20278169007f0c67e58a28ab3d3e2c72a (diff)
window.c: include ButtonPress events in Input
Signed-off-by: Dave Reisner <d@falconindy.com>
-rw-r--r--window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window.c b/window.c
index 752f045..0c6c53a 100644
--- a/window.c
+++ b/window.c
@@ -64,7 +64,7 @@ void win_open(win_t *win) {
DIE("could not create window");
XSelectInput(e->dpy, win->xwin,
- StructureNotifyMask | KeyPressMask);
+ StructureNotifyMask | KeyPressMask | ButtonPressMask);
gcval.foreground = bgcol.pixel;
win->bgc = XCreateGC(e->dpy, win->xwin, GCForeground, &gcval);