aboutsummaryrefslogtreecommitdiff
path: root/x.c.rej
diff options
context:
space:
mode:
authorLoek Le Blansch <l.leblansch@gmail.com>2020-07-16 12:22:55 +0200
committerLoek Le Blansch <l.leblansch@gmail.com>2020-07-16 12:22:55 +0200
commit2c4fd0c3c94cd120183bb5e989e36d023ec8c527 (patch)
tree08a73c3af4f52dd91ee9c6f23b2f7eb34026168f /x.c.rej
parent07181e9b00128594a343419356e2fc59829649d0 (diff)
github repo
Diffstat (limited to 'x.c.rej')
-rw-r--r--x.c.rej27
1 files changed, 0 insertions, 27 deletions
diff --git a/x.c.rej b/x.c.rej
deleted file mode 100644
index 860c2dd..0000000
--- a/x.c.rej
+++ /dev/null
@@ -1,27 +0,0 @@
---- x.c
-+++ x.c
-@@ -1013,11 +1022,23 @@ xinit(int cols, int rows)
- Window parent;
- pid_t thispid = getpid();
- XColor xmousefg, xmousebg;
-+ XWindowAttributes attr;
-+ XVisualInfo vis;
-
- if (!(xw.dpy = XOpenDisplay(NULL)))
- die("can't open display\n");
- xw.scr = XDefaultScreen(xw.dpy);
-- xw.vis = XDefaultVisual(xw.dpy, xw.scr);
-+
-+ if (!(opt_embed && (parent = strtol(opt_embed, NULL, 0)))) {
-+ parent = XRootWindow(xw.dpy, xw.scr);
-+ xw.depth = 32;
-+ } else {
-+ XGetWindowAttributes(xw.dpy, parent, &attr);
-+ xw.depth = attr.depth;
-+ }
-+
-+ XMatchVisualInfo(xw.dpy, xw.scr, xw.depth, TrueColor, &vis);
-+ xw.vis = vis.visual;
-
- /* font */
- if (!FcInit())