Introduction
Introduction Statistics Contact Development Disclaimer Help
tAvoid failing when embedding with a Window id of 0 - st - [fork] customized bu…
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit 008aae541b5cb1e67a025048adef9a06eaa11c2e
parent cd159883d14c5874446a6ae949be031a1c9d37c2
Author: Quentin Rameau <[email protected]>
Date: Thu, 16 Oct 2014 00:42:53 +0200
Avoid failing when embedding with a Window id of 0
I'd like to let st run with its own window when trying to embed it to a window …
Diffstat:
M st.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/st.c b/st.c
t@@ -3136,8 +3136,8 @@ xinit(void) {
| ButtonMotionMask | ButtonPressMask | ButtonReleaseMask;
xw.attrs.colormap = xw.cmap;
- parent = opt_embed ? strtol(opt_embed, NULL, 0) : \
- XRootWindow(xw.dpy, xw.scr);
+ if (!(opt_embed && (parent = strtol(opt_embed, NULL, 0))))
+ parent = XRootWindow(xw.dpy, xw.scr);
xw.win = XCreateWindow(xw.dpy, parent, xw.l, xw.t,
xw.w, xw.h, 0, XDefaultDepth(xw.dpy, xw.scr), InputOut…
xw.vis, CWBackPixel | CWBorderPixel | CWBitGravity
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.