From 0b758e08f2bca283eb930ede8165bfa26e6cacea Mon Sep 17 00:00:00 2001 From: shuall Date: Fri, 28 Oct 2016 22:09:26 -0400 Subject: added support for XEMBED into other windows (ie tabbed) with -w --- window.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'window.c') diff --git a/window.c b/window.c index ad08787..18f45b0 100644 --- a/window.c +++ b/window.c @@ -133,6 +133,7 @@ void win_init(win_t *win) win->bar.l.buf = emalloc(win->bar.l.size); win->bar.r.buf = emalloc(win->bar.r.size); win->bar.h = options->hide_bar ? 0 : barheight; + win->embed = options->embed; INIT_ATOM_(WM_DELETE_WINDOW); INIT_ATOM_(_NET_WM_NAME); @@ -197,7 +198,10 @@ void win_open(win_t *win) win->y = 0; } - win->xwin = XCreateWindow(e->dpy, RootWindow(e->dpy, e->scr), + if (!(win->embed)) { + win->embed = RootWindow(e->dpy, e->scr); + } + win->xwin = XCreateWindow(e->dpy, win->embed, win->x, win->y, win->w, win->h, 0, e->depth, InputOutput, e->vis, 0, NULL); if (win->xwin == None) -- cgit v1.2.3