[bar] Add EnterWindowMask for all BarWindow event

This commit is contained in:
Martin Duquesnoy 2008-10-12 12:19:00 +02:00
parent 0e812d4eef
commit 3c4742b986

2
bar.c
View File

@ -42,7 +42,7 @@ bar_create(int x, int y, uint w, uint h, int bord, uint color)
at.override_redirect = 1;
at.background_pixmap = ParentRelative;
at.event_mask = ButtonPressMask | ExposureMask;
at.event_mask = ButtonPressMask | ExposureMask | EnterWindowMask;
bw->dr = XCreatePixmap(dpy, root, w, h, DefaultDepth(dpy, screen));
bw->win = XCreateWindow(dpy, root, x, y, w, h, bord, DefaultDepth(dpy, screen),