… | |
… | |
253 | // XDestroyWindow (disp, menuBar.win); |
253 | // XDestroyWindow (disp, menuBar.win); |
254 | #endif |
254 | #endif |
255 | delete TermWin.drawable; |
255 | delete TermWin.drawable; |
256 | // destroy all windows |
256 | // destroy all windows |
257 | if (TermWin.parent[0] |
257 | if (TermWin.parent[0] |
258 | #if ENABLE_FRILLS |
258 | #if ENABLE_XEMBED |
259 | && !rs[Rs_embed] |
259 | && !rs[Rs_embed] |
260 | #endif |
260 | #endif |
261 | ) |
261 | ) |
262 | XDestroyWindow (disp, TermWin.parent[0]); |
262 | XDestroyWindow (disp, TermWin.parent[0]); |
263 | } |
263 | } |
… | |
… | |
589 | rxvt_fatal ("memory allocation failure. aborting.\n"); |
589 | rxvt_fatal ("memory allocation failure. aborting.\n"); |
590 | |
590 | |
591 | return p; |
591 | return p; |
592 | } |
592 | } |
593 | |
593 | |
594 | /* INTPROTO */ |
|
|
595 | void * |
594 | void * |
596 | rxvt_calloc (size_t number, size_t size) |
595 | rxvt_calloc (size_t number, size_t size) |
597 | { |
596 | { |
598 | void *p = calloc (number, size); |
597 | void *p = calloc (number, size); |
599 | |
598 | |
… | |
… | |
601 | rxvt_fatal ("memory allocation failure. aborting.\n"); |
600 | rxvt_fatal ("memory allocation failure. aborting.\n"); |
602 | |
601 | |
603 | return p; |
602 | return p; |
604 | } |
603 | } |
605 | |
604 | |
606 | /* INTPROTO */ |
|
|
607 | void * |
605 | void * |
608 | rxvt_realloc (void *ptr, size_t size) |
606 | rxvt_realloc (void *ptr, size_t size) |
609 | { |
607 | { |
610 | void *p = realloc (ptr, size); |
608 | void *p = realloc (ptr, size); |
611 | |
609 | |
… | |
… | |
847 | (void)ioctl (pty.pty, TIOCSWINSZ, &ws); |
845 | (void)ioctl (pty.pty, TIOCSWINSZ, &ws); |
848 | |
846 | |
849 | #if 0 |
847 | #if 0 |
850 | // TIOCSWINSZ⎈ is supposed to do this automatically and correctly |
848 | // TIOCSWINSZ⎈ is supposed to do this automatically and correctly |
851 | if (cmd_pid) /* force through to the command */ |
849 | if (cmd_pid) /* force through to the command */ |
852 | kill (cmd_pid, SIGWINCH); |
850 | kill (-cmd_pid, SIGWINCH); |
853 | #endif |
851 | #endif |
854 | } |
852 | } |
855 | |
853 | |
856 | /*----------------------------------------------------------------------*/ |
854 | /*----------------------------------------------------------------------*/ |
857 | /* set_fonts () - load and set the various fonts |
855 | /* set_fonts () - load and set the various fonts |
… | |
… | |
1252 | XWindowAttributes wattr; |
1250 | XWindowAttributes wattr; |
1253 | |
1251 | |
1254 | if (width == 0 || height == 0) |
1252 | if (width == 0 || height == 0) |
1255 | { |
1253 | { |
1256 | XGetWindowAttributes (display->display, display->root, &wattr); |
1254 | XGetWindowAttributes (display->display, display->root, &wattr); |
|
|
1255 | |
1257 | if (width == 0) |
1256 | if (width == 0) |
1258 | width = wattr.width - szHint.base_width; |
1257 | width = wattr.width - szHint.base_width; |
1259 | if (height == 0) |
1258 | if (height == 0) |
1260 | height = wattr.height - szHint.base_height; |
1259 | height = wattr.height - szHint.base_height; |
1261 | } |
1260 | } |