Calculate VERSION from the hg reversion number.

This commit is contained in:
Kris Maglione 2007-02-18 21:58:22 -05:00
parent f5383bab94
commit 68734b56d5
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# wmii version
VERSION = 3.6-rc2
VERSION != hg tip | awk -F '[: ]+' '/^changeset:/ { print "hg" $$2 }'
CONFVERSION = 3.5
# Customize below to fit your system

4
main.c
View File

@ -385,8 +385,8 @@ main(int argc, char *argv[]) {
init_screen(s);
pmap = XCreatePixmap(blz.dpy, blz.root, s->rect.width, s->rect.height,
DefaultDepth(blz.dpy, blz.screen));
wa.event_mask = SubstructureRedirectMask | EnterWindowMask | LeaveWindowMask
| FocusChangeMask;
wa.event_mask = SubstructureRedirectMask | EnterWindowMask
| LeaveWindowMask | FocusChangeMask;
wa.cursor = cursor[CurNormal];
XChangeWindowAttributes(blz.dpy, blz.root, CWEventMask | CWCursor, &wa);
wa.override_redirect = 1;