Call xsetenv() in main process instead of child
This makes xsetenv internal to x.c, and allows iso14755's external command to use $WINDOWID instead of having to snprintf it again. (The same benefit will apply to the externalpipe patch.) The xwinid function is no longer needed. Signed-off-by: Devin J. Pohly <djpohly@gmail.com>
This commit is contained in:
1 parent
1f24bde82b
commit
3e44ee5569
3 files changed
+4
-14
No files matched your search
@@ -89,6 +89,7 @@ static void xdrawcursor(void);
|
||||
static int xgeommasktogravity(int);
|
||||
static int xloadfont(Font *, FcPattern *);
|
||||
static void xunloadfont(Font *);
|
||||
static void xsetenv(void);
|
||||
|
||||
static void expose(XEvent *);
|
||||
static void visibility(XEvent *);
|
||||
@@ -1487,12 +1488,6 @@ xbell(int vol)
|
||||
XkbBell(xw.dpy, xw.win, vol, (Atom)NULL);
|
||||
}
|
||||
|
||||
unsigned long
|
||||
xwinid(void)
|
||||
{
|
||||
return xw.win;
|
||||
}
|
||||
|
||||
void
|
||||
focus(XEvent *ev)
|
||||
{
|
||||
@@ -1765,6 +1760,7 @@ run:
|
||||
XSetLocaleModifiers("");
|
||||
tnew(MAX(cols, 1), MAX(rows, 1));
|
||||
xinit();
|
||||
xsetenv();
|
||||
selinit();
|
||||
run();
|
||||
|
||||
|
||||
Reference in new issue
Block a user