summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-05-06 15:13:36 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-05-06 15:13:36 +0100
commit86c4797f2cd1e0d7fdbb4ebe83066762062e4217 (patch)
tree0ad5459d2deb7e6d7f543661307d46758fdc36da
parentc094ed24735b8bac3c6c7773c76e608cdf3f3354 (diff)
downloaddwm-86c4797f2cd1e0d7fdbb4ebe83066762062e4217.tar.gz
applied JUCE patch
-rw-r--r--config.def.h2
-rw-r--r--dwm.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 42f00ae..ed3f624 100644
--- a/config.def.h
+++ b/config.def.h
@@ -22,10 +22,12 @@ Rule rules[] = {
/* func name bx by bw wx wy ww wh mx my mw mh tx ty tw th mox moy mow moh */
#define MFACT 0.55 /* master width factor [0.1 .. 0.9] */
DEFGEOM(single, 0, 0, sw, 0, bh, sw, sh-bh, wx, wy, mfact*ww, wh, mx+mw, wy, ww-mw, wh, wx, wy, ww, wh)
+DEFGEOM(dual, 0, 0,1280, 0, bh, ww, wh-bh, wx, wy, 1280,800-bh, 1280, 0, ww-mw, sh, mx, my, mw, mh)
Geom geoms[] = {
/* symbol function */
{ "[]", single }, /* first entry is default */
+ { "[][]", dual },
};
/* layout(s) */
diff --git a/dwm.c b/dwm.c
index ee0c810..760ba27 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1851,6 +1851,7 @@ xerror(Display *dpy, XErrorEvent *ee) {
|| (ee->request_code == X_PolyFillRectangle && ee->error_code == BadDrawable)
|| (ee->request_code == X_PolySegment && ee->error_code == BadDrawable)
|| (ee->request_code == X_ConfigureWindow && ee->error_code == BadMatch)
+ || (ee->request_code == X_GrabButton && ee->error_code == BadAccess)
|| (ee->request_code == X_GrabKey && ee->error_code == BadAccess)
|| (ee->request_code == X_CopyArea && ee->error_code == BadDrawable))
return 0;