diff --git a/cmd/wmii/view.c b/cmd/wmii/view.c index 9112b255..987cd78e 100644 --- a/cmd/wmii/view.c +++ b/cmd/wmii/view.c @@ -373,6 +373,7 @@ view_attach(View *v, Frame *f) { || group_leader(c->group) && !client_viewframe(group_leader(c->group), c->sel->view); + USED(newgroup); if(!(c->w.ewmh.type & (TypeSplash|TypeDock))) { if(!(c->tagre.regex && regexec(c->tagre.regc, v->name, nil, 0))) diff --git a/cmd/wmii/x11.c b/cmd/wmii/x11.c index 7b4e98fd..aae1cc46 100644 --- a/cmd/wmii/x11.c +++ b/cmd/wmii/x11.c @@ -1047,7 +1047,8 @@ setfocus(Window *w, int mode) { XWindow getfocus(void) { - XWindow ret, revert; + XWindow ret; + int revert; XGetInputFocus(display, &ret, &revert); return ret; diff --git a/libwmii_hack/hack.c b/libwmii_hack/hack.c index ce6d0f6a..b282c52c 100644 --- a/libwmii_hack/hack.c +++ b/libwmii_hack/hack.c @@ -20,7 +20,6 @@ enum { static void* xlib; -static long lastwin; static long transient; static Atom types[32]; static long ntypes; @@ -89,12 +88,6 @@ init(Display *d) { /* Hrm... assumes one display... */ gethostname(hostname, sizeof hostname); } -static int /* Temporary Xlib error handler */ -ignoreerrors(Display *d, XErrorEvent *e) { - //USED(d, e); - return 0; -} - static void setprops(Display *d, Window w) { long *l;