*** empty log message ***
authorroot <root>
Thu, 17 Feb 2005 20:52:48 +0000 (20:52 +0000)
committerroot <root>
Thu, 17 Feb 2005 20:52:48 +0000 (20:52 +0000)
src/init.C

index 749b339e181b09417ca62c361684252e3d52b36d..7b0b6d091fb1a76a4ecec306fa8ff27d6e06d1d2 100644 (file)
@@ -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);