… | |
… | |
976 | rxvt_fatal ("unable to load base fontset, please specify a valid one using -fn, aborting.\n"); |
976 | rxvt_fatal ("unable to load base fontset, please specify a valid one using -fn, aborting.\n"); |
977 | |
977 | |
978 | #if ENABLE_FRILLS |
978 | #if ENABLE_FRILLS |
979 | if (rs[Rs_embed]) |
979 | if (rs[Rs_embed]) |
980 | { |
980 | { |
|
|
981 | XWindowAttributes wattr; |
|
|
982 | |
981 | top = strtol (rs[Rs_embed], 0, 0); |
983 | top = strtol (rs[Rs_embed], 0, 0); |
982 | |
984 | |
983 | XWindowAttributes wattr; |
|
|
984 | XGetWindowAttributes (disp, top, &wattr); |
985 | if (!XGetWindowAttributes (disp, top, &wattr)) |
|
|
986 | rxvt_fatal ("invalid window-id specified with -embed, aborting.\n"); |
985 | |
987 | |
986 | window_calc (wattr.width, wattr.height); |
988 | window_calc (wattr.width, wattr.height); |
987 | |
989 | |
988 | #if 0 |
990 | #if 0 |
989 | if (wattr.map_state == IsViewable) |
991 | if (wattr.map_state == IsViewable) |