window.c: include ButtonPress events in Input
Signed-off-by: Dave Reisner <d@falconindy.com>
This commit is contained in:
2
window.c
2
window.c
@@ -64,7 +64,7 @@ void win_open(win_t *win) {
|
|||||||
DIE("could not create window");
|
DIE("could not create window");
|
||||||
|
|
||||||
XSelectInput(e->dpy, win->xwin,
|
XSelectInput(e->dpy, win->xwin,
|
||||||
StructureNotifyMask | KeyPressMask);
|
StructureNotifyMask | KeyPressMask | ButtonPressMask);
|
||||||
|
|
||||||
gcval.foreground = bgcol.pixel;
|
gcval.foreground = bgcol.pixel;
|
||||||
win->bgc = XCreateGC(e->dpy, win->xwin, GCForeground, &gcval);
|
win->bgc = XCreateGC(e->dpy, win->xwin, GCForeground, &gcval);
|
||||||
|
Reference in New Issue
Block a user