From: root Date: Thu, 17 Feb 2005 20:52:48 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=a6251f5a3e913ee657b3781648da857f4c957431;p=dana%2Furxvt.git *** empty log message *** --- diff --git a/src/init.C b/src/init.C index 749b339e..7b0b6d09 100644 --- a/src/init.C +++ b/src/init.C @@ -978,10 +978,12 @@ rxvt_term::create_windows (int argc, const char *const *argv) #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);