From 68ec8a677fe396edf0335f49890ee3a87d6e8531 Mon Sep 17 00:00:00 2001 From: Hannes Schueller Date: Thu, 16 Aug 2012 22:10:33 +0200 Subject: [PATCH] handle embedding into window ids given in hexadecimal format issue reported by Jason Ryan patch by Matto Fransen --- main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index d83f3e9..b3407ba 100644 --- a/main.c +++ b/main.c @@ -2626,8 +2626,13 @@ main(int argc, char *argv[]) { if (!g_thread_supported()) g_thread_init(NULL); - if (winid) - embed = atoi(winid); + if (winid) { + if (strncmp(winid, "0x", 2) == 0) { + embed = strtol(winid, NULL, 16); + } else { + embed = atoi(winid); + } + } setup_modkeys(); make_keyslist(); -- 2.11.4.GIT