projects
/
dana
/
urxvt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e02ba9
)
*** empty log message ***
author
root
<root>
Thu, 17 Feb 2005 20:52:48 +0000
(20:52 +0000)
committer
root
<root>
Thu, 17 Feb 2005 20:52:48 +0000
(20:52 +0000)
src/init.C
patch
|
blob
|
history
diff --git
a/src/init.C
b/src/init.C
index 749b339e181b09417ca62c361684252e3d52b36d..7b0b6d091fb1a76a4ecec306fa8ff27d6e06d1d2 100644
(file)
--- 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);