openbsd-ports/x11/xgrab/patches/patch-ab
espie 77c3bc4d3f Non trivial fake.
Use cpp instead of xrdb to avoid X problems.
Note that xgrab does only work on 8 bit displays.
2000-06-02 15:47:50 +00:00

22 lines
528 B
Plaintext

$OpenBSD: patch-ab,v 1.2 2000/06/02 15:47:50 espie Exp $
--- xgrabsc.c.orig Tue Nov 7 20:31:41 1995
+++ xgrabsc.c Fri Jun 2 17:09:12 2000
@@ -106,6 +106,7 @@ static Window xgTryChildren (win, WM_STA
int ScreenNumberOfScreen (scr)
register Screen *scr;
{
+#ifdef BROKEN
register Display *dpy = scr->display;
register int i;
@@ -113,6 +114,9 @@ int ScreenNumberOfScreen (scr)
if (scr == ScreenOfDisplay(dpy,i)) return i;
}
return -1;
+#else
+ return XScreenNumberOfScreen (scr);
+#endif
}