ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/main.C
(Generate patch)

Comparing rxvt-unicode/src/main.C (file contents):
Revision 1.136 by root, Mon Feb 14 18:47:54 2005 UTC vs.
Revision 1.143 by root, Sun Feb 20 00:09:25 2005 UTC

30 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 30 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
31 *---------------------------------------------------------------------*/ 31 *---------------------------------------------------------------------*/
32 32
33#include "../config.h" /* NECESSARY */ 33#include "../config.h" /* NECESSARY */
34#include "rxvt.h" /* NECESSARY */ 34#include "rxvt.h" /* NECESSARY */
35#include "main.intpro" /* PROTOS for internal routines */
36 35
37#include <csignal> 36#include <csignal>
38#include <cstring> 37#include <cstring>
39 38
40#ifdef TTY_GID_SUPPORT 39#ifdef TTY_GID_SUPPORT
253 //if (menuBar.win) 252 //if (menuBar.win)
254 // XDestroyWindow (disp, menuBar.win); 253 // XDestroyWindow (disp, menuBar.win);
255#endif 254#endif
256 delete TermWin.drawable; 255 delete TermWin.drawable;
257 // destroy all windows 256 // destroy all windows
258 if (TermWin.parent[0] && !rs[Rs_embed]) 257 if (TermWin.parent[0])
259 XDestroyWindow (disp, TermWin.parent[0]); 258 XDestroyWindow (disp, TermWin.parent[0]);
260 } 259 }
261 260
262 // TODO: free pixcolours, colours should become part of rxvt_display 261 // TODO: free pixcolours, colours should become part of rxvt_display
263 262
586 rxvt_fatal ("memory allocation failure. aborting.\n"); 585 rxvt_fatal ("memory allocation failure. aborting.\n");
587 586
588 return p; 587 return p;
589} 588}
590 589
591/* INTPROTO */
592void * 590void *
593rxvt_calloc (size_t number, size_t size) 591rxvt_calloc (size_t number, size_t size)
594{ 592{
595 void *p = calloc (number, size); 593 void *p = calloc (number, size);
596 594
598 rxvt_fatal ("memory allocation failure. aborting.\n"); 596 rxvt_fatal ("memory allocation failure. aborting.\n");
599 597
600 return p; 598 return p;
601} 599}
602 600
603/* INTPROTO */
604void * 601void *
605rxvt_realloc (void *ptr, size_t size) 602rxvt_realloc (void *ptr, size_t size)
606{ 603{
607 void *p = realloc (ptr, size); 604 void *p = realloc (ptr, size);
608 605
844 (void)ioctl (pty.pty, TIOCSWINSZ, &ws); 841 (void)ioctl (pty.pty, TIOCSWINSZ, &ws);
845 842
846#if 0 843#if 0
847 // TIOCSWINSZ⎈ is supposed to do this automatically and correctly 844 // TIOCSWINSZ⎈ is supposed to do this automatically and correctly
848 if (cmd_pid) /* force through to the command */ 845 if (cmd_pid) /* force through to the command */
849 kill (cmd_pid, SIGWINCH); 846 kill (-cmd_pid, SIGWINCH);
850#endif 847#endif
851} 848}
852 849
853/*----------------------------------------------------------------------*/ 850/*----------------------------------------------------------------------*/
854/* set_fonts () - load and set the various fonts 851/* set_fonts () - load and set the various fonts
1249 XWindowAttributes wattr; 1246 XWindowAttributes wattr;
1250 1247
1251 if (width == 0 || height == 0) 1248 if (width == 0 || height == 0)
1252 { 1249 {
1253 XGetWindowAttributes (display->display, display->root, &wattr); 1250 XGetWindowAttributes (display->display, display->root, &wattr);
1251
1254 if (width == 0) 1252 if (width == 0)
1255 width = wattr.width - szHint.base_width; 1253 width = wattr.width - szHint.base_width;
1256 if (height == 0) 1254 if (height == 0)
1257 height = wattr.height - szHint.base_height; 1255 height = wattr.height - szHint.base_height;
1258 } 1256 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines