Compare commits

..

No commits in common. "9b7c9fe90730f36da17d64d85492dca97b6f2ade" and "b5218d4f77e882e2b2a6632e723cc7230ab27f3f" have entirely different histories.

2 changed files with 5 additions and 8 deletions

2
st.c
View File

@ -2748,7 +2748,7 @@ strhandle(void)
} else {
term.images = newimages;
}
#if COLUMNS_PATCH && !REFLOW_PATCH
#if COLUMNS_PATCH && !REFLOW
x2 = MIN(x2, term.maxcol) - 1;
#else
x2 = MIN(x2, term.col) - 1;

11
x.c
View File

@ -1426,7 +1426,7 @@ xinit(int cols, int rows)
#elif !SWAPMOUSE_PATCH
Cursor cursor;
#endif // HIDECURSOR_PATCH
Window parent, root;
Window parent;
pid_t thispid = getpid();
#if !SWAPMOUSE_PATCH
XColor xmousefg, xmousebg;
@ -1524,12 +1524,11 @@ xinit(int cols, int rows)
xw.attrs.event_mask |= PointerMotionMask;
#endif // OPENURLONCLICK_PATCH
root = XRootWindow(xw.dpy, xw.scr);
#if !ALPHA_PATCH
if (!(opt_embed && (parent = strtol(opt_embed, NULL, 0))))
parent = root;
parent = XRootWindow(xw.dpy, xw.scr);
#endif // ALPHA_PATCH
xw.win = XCreateWindow(xw.dpy, root, xw.l, xw.t,
xw.win = XCreateWindow(xw.dpy, parent, xw.l, xw.t,
#if ALPHA_PATCH
win.w, win.h, 0, xw.depth, InputOutput,
#else
@ -1537,8 +1536,6 @@ xinit(int cols, int rows)
#endif // ALPHA_PATCH
xw.vis, CWBackPixel | CWBorderPixel | CWBitGravity
| CWEventMask | CWColormap, &xw.attrs);
if (parent != root)
XReparentWindow(xw.dpy, xw.win, parent, xw.l, xw.t);
memset(&gcvalues, 0, sizeof(gcvalues));
gcvalues.graphics_exposures = False;
@ -1551,7 +1548,7 @@ xinit(int cols, int rows)
#endif // SINGLE_DRAWABLE_BUFFER_PATCH
dc.gc = XCreateGC(xw.dpy, xw.buf, GCGraphicsExposures, &gcvalues);
#else
dc.gc = XCreateGC(xw.dpy, xw.win, GCGraphicsExposures,
dc.gc = XCreateGC(xw.dpy, parent, GCGraphicsExposures,
&gcvalues);
#if SINGLE_DRAWABLE_BUFFER_PATCH
xw.buf = xw.win;