--- rxvt-unicode/src/main.C 2005/02/14 18:47:54 1.136 +++ rxvt-unicode/src/main.C 2005/02/20 00:09:25 1.143 @@ -32,7 +32,6 @@ #include "../config.h" /* NECESSARY */ #include "rxvt.h" /* NECESSARY */ -#include "main.intpro" /* PROTOS for internal routines */ #include #include @@ -255,7 +254,7 @@ #endif delete TermWin.drawable; // destroy all windows - if (TermWin.parent[0] && !rs[Rs_embed]) + if (TermWin.parent[0]) XDestroyWindow (disp, TermWin.parent[0]); } @@ -588,7 +587,6 @@ return p; } -/* INTPROTO */ void * rxvt_calloc (size_t number, size_t size) { @@ -600,7 +598,6 @@ return p; } -/* INTPROTO */ void * rxvt_realloc (void *ptr, size_t size) { @@ -846,7 +843,7 @@ #if 0 // TIOCSWINSZ⎈ is supposed to do this automatically and correctly if (cmd_pid) /* force through to the command */ - kill (cmd_pid, SIGWINCH); + kill (-cmd_pid, SIGWINCH); #endif } @@ -1251,6 +1248,7 @@ if (width == 0 || height == 0) { XGetWindowAttributes (display->display, display->root, &wattr); + if (width == 0) width = wattr.width - szHint.base_width; if (height == 0)