summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index cbd6b0f..6475cd0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -824,10 +824,10 @@ static void client_show(WebKitWebView *webview, Client *c)
gtk_widget_show_all(c->window);
+#ifndef FEATURE_NO_XEMBED
char *wid;
wid = g_strdup_printf("%d", (int)GDK_WINDOW_XID(gtk_widget_get_window(c->window)));
g_setenv("neovimb_WIN_ID", wid, TRUE);
-#ifndef FEATURE_NO_XEMBED
/* set the x window id to env */
if (vb.embed) {
char *xid;
@@ -837,8 +837,8 @@ static void client_show(WebKitWebView *webview, Client *c)
} else {
g_setenv("neovimb_XID", wid, TRUE);
}
-#endif
g_free(wid);
+#endif
/* start client in normal mode */
vb_enter(c, 'n');