summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2011-01-23 04:03:49 +0100
committerDave Reisner <d@falconindy.com>2011-01-23 15:46:25 +0100
commit13eb5ac929eb99955b4c58192b0aed467db1a4a2 (patch)
treeed2a95c5bc9de82c7d7a549fce591fe4fc7e200f /window.c
parent8183b5a20278169007f0c67e58a28ab3d3e2c72a (diff)
downloadnsxiv-13eb5ac929eb99955b4c58192b0aed467db1a4a2.tar.zst
window.c: include ButtonPress events in Input
Signed-off-by: Dave Reisner <d@falconindy.com>
Diffstat (limited to 'window.c')
-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);