--- rxvt-unicode/src/init.C 2005/02/17 15:07:48 1.110 +++ rxvt-unicode/src/init.C 2005/02/17 20:52:48 1.111 @@ -978,10 +978,12 @@ #if ENABLE_FRILLS if (rs[Rs_embed]) { + XWindowAttributes wattr; + top = strtol (rs[Rs_embed], 0, 0); - XWindowAttributes wattr; - XGetWindowAttributes (disp, top, &wattr); + if (!XGetWindowAttributes (disp, top, &wattr)) + rxvt_fatal ("invalid window-id specified with -embed, aborting.\n"); window_calc (wattr.width, wattr.height);