65 lines
2.5 KiB
Plaintext
65 lines
2.5 KiB
Plaintext
$OpenBSD: patch-x11_c,v 1.1 2000/06/04 23:08:35 espie Exp $
|
|
--- x11.c.orig Tue Nov 19 05:00:50 1991
|
|
+++ x11.c Mon Jun 5 00:48:26 2000
|
|
@@ -58,7 +58,6 @@
|
|
|
|
#define F_ICON 0 /* Icon index to frame array. */
|
|
#define F_WINDOW 1 /* Window index to frame array. */
|
|
-#define FACES_BORDER_WIDTH 2
|
|
#define FRAME_MASK (ButtonPressMask | ExposureMask | \
|
|
ButtonMotionMask | KeyPressMask)
|
|
#define ICON_MASK ExposureMask
|
|
@@ -364,11 +363,13 @@ char *argv[] ;
|
|
init_font() ;
|
|
gc_mask = GCFont | GCForeground | GCBackground | GCGraphicsExposures ;
|
|
gc_val.font = sfont->fid ;
|
|
- gc_val.foreground = foregnd ;
|
|
- gc_val.background = backgnd ;
|
|
+ gc_val.foreground = BlackPixel(dpy, screen) ;
|
|
+ gc_val.background = WhitePixel(dpy, screen) ;
|
|
gc_val.graphics_exposures = False ;
|
|
gc = XCreateGC(dpy, root, gc_mask, &gc_val) ;
|
|
|
|
+ gc_val.foreground = foregnd ;
|
|
+ gc_val.background = backgnd ;
|
|
tilegc = XCreateGC(dpy, root, gc_mask, &gc_val) ;
|
|
if (depth == 1) XSetFillStyle(dpy, tilegc, FillOpaqueStippled) ;
|
|
else XSetFillStyle(dpy, tilegc, FillTiled) ;
|
|
@@ -459,7 +460,11 @@ load_resources()
|
|
|
|
home = getenv("HOME") ;
|
|
XrmInitialize() ;
|
|
+#ifdef __FreeBSD__
|
|
+ STRCPY(name, "/usr/X11R6/lib/X11/app-defaults/Faces") ;
|
|
+#else
|
|
STRCPY(name, "/usr/lib/X11/app-defaults/Faces") ;
|
|
+#endif
|
|
|
|
/* Get applications defaults file, if any. */
|
|
|
|
@@ -576,14 +581,14 @@ char *argv[] ;
|
|
winattrs.event_mask = FRAME_MASK ;
|
|
|
|
frame[F_WINDOW] = XCreateWindow(dpy, root, size.x, size.y,
|
|
- size.width, size.height, FACES_BORDER_WIDTH,
|
|
+ size.width, size.height, border_width,
|
|
CopyFromParent, InputOutput, CopyFromParent,
|
|
CWBackPixel | CWBorderPixel | CWEventMask, &winattrs) ;
|
|
|
|
winattrs.event_mask = ICON_MASK ;
|
|
|
|
frame[F_ICON] = XCreateWindow(dpy, root,
|
|
- ix, iy, imagewidth, imageheight, FACES_BORDER_WIDTH,
|
|
+ ix, iy, imagewidth, imageheight, border_width,
|
|
CopyFromParent, InputOutput, CopyFromParent,
|
|
CWBackPixel | CWBorderPixel | CWEventMask, &winattrs) ;
|
|
|
|
@@ -856,6 +861,7 @@ char *str ;
|
|
XFillRectangle(dpy, pr[(int) dtype], gc, x, y-9,
|
|
(unsigned int) textwidth+2, 13) ;
|
|
XSetFunction(dpy, gc, GXxor) ;
|
|
+ XSetForeground(dpy, gc, WhitePixel(dpy, screen));
|
|
XDrawImageString(dpy, pr[(int) dtype], gc, x, y, str, len) ;
|
|
XSetFunction(dpy, gc, GXcopy) ;
|
|
}
|