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

Comparing rxvt-unicode/src/init.C (file contents):
Revision 1.90 by root, Wed Aug 25 03:47:20 2004 UTC vs.
Revision 1.93 by root, Sun Oct 24 14:02:44 2004 UTC

191 }; 191 };
192 192
193bool 193bool
194rxvt_term::init_vars () 194rxvt_term::init_vars ()
195{ 195{
196 sw_term.start (SIGTERM);
197
196 pix_colors_focused = new rxvt_color [TOTAL_COLORS]; 198 pix_colors_focused = new rxvt_color [TOTAL_COLORS];
197#ifdef OFF_FOCUS_FADING 199#ifdef OFF_FOCUS_FADING
198 pix_colors_unfocused = new rxvt_color [TOTAL_COLORS]; 200 pix_colors_unfocused = new rxvt_color [TOTAL_COLORS];
199#endif 201#endif
200 pix_colors = pix_colors_focused; 202 pix_colors = pix_colors_focused;
617 XA_STRING, 8, PropModeReplace, 619 XA_STRING, 8, PropModeReplace,
618 (unsigned char *)locale, strlen (locale)); 620 (unsigned char *)locale, strlen (locale));
619 621
620 if (!XSupportsLocale ()) 622 if (!XSupportsLocale ())
621 { 623 {
622 rxvt_warn ("the locale is not supported by Xlib, working withotu locale support.\n"); 624 rxvt_warn ("the locale is not supported by Xlib, working without locale support.\n");
623 return; 625 return;
624 } 626 }
625 627
626 im_ev.start (display); 628 im_ev.start (display);
627 629
921 923
922#if ENABLE_FRILLS 924#if ENABLE_FRILLS
923 if (options & Opt_borderLess) 925 if (options & Opt_borderLess)
924 { 926 {
925 prop = XInternAtom(display->display, "_MOTIF_WM_INFO", True); 927 prop = XInternAtom(display->display, "_MOTIF_WM_INFO", True);
928
926 if (prop == None) 929 if (prop == None)
927 { 930 {
928 /* print_warning("Window Manager does not support MWM hints. Bypassing window manager control for borderless window.\n");*/ 931 /* print_warning("Window Manager does not support MWM hints. Bypassing window manager control for borderless window.\n");*/
929#ifdef PREFER_24BIT 932#ifdef PREFER_24BIT
930 attributes.override_redirect = TRUE; 933 attributes.override_redirect = TRUE;
989 XSetWMProperties (display->display, TermWin.parent[0], NULL, NULL, 992 XSetWMProperties (display->display, TermWin.parent[0], NULL, NULL,
990 (char **)argv, argc, &szHint, &wmHint, &classHint); 993 (char **)argv, argc, &szHint, &wmHint, &classHint);
991 994
992#if ENABLE_FRILLS 995#if ENABLE_FRILLS
993 long pid = getpid (); 996 long pid = getpid ();
997
994 XChangeProperty (display->display, TermWin.parent[0], 998 XChangeProperty (display->display, TermWin.parent[0],
995 display->atom ("_NET_WM_PID"), XA_CARDINAL, 32, 999 display->atom ("_NET_WM_PID"), XA_CARDINAL, 32,
996 PropModeReplace, (unsigned char *)&pid, 1); 1000 PropModeReplace, (unsigned char *)&pid, 1);
997#endif 1001#endif
998 1002
1008 1012
1009#if ENABLE_FRILLS 1013#if ENABLE_FRILLS
1010 if (mwmhints.flags) 1014 if (mwmhints.flags)
1011 { 1015 {
1012 prop = XInternAtom (display->display, "_MOTIF_WM_HINTS", False); 1016 prop = XInternAtom (display->display, "_MOTIF_WM_HINTS", False);
1013 XChangeProperty (display->display, TermWin.parent[0], prop, prop, 32, PropModeReplace, (unsigned char *) &mwmhints, PROP_MWM_HINTS_ELEMENTS); 1017 XChangeProperty (display->display, TermWin.parent[0], prop, prop, 32,
1018 PropModeReplace, (unsigned char *)&mwmhints, PROP_MWM_HINTS_ELEMENTS);
1014 } 1019 }
1015#endif 1020#endif
1016 1021
1017 /* vt cursor: Black-on-White is standard, but this is more popular */ 1022 /* vt cursor: Black-on-White is standard, but this is more popular */
1018 TermWin_cursor = XCreateFontCursor (display->display, XC_xterm); 1023 TermWin_cursor = XCreateFontCursor (display->display, XC_xterm);
1389 1394
1390 rxvt_get_ttymode (&tio, er); 1395 rxvt_get_ttymode (&tio, er);
1391 1396
1392 /* set initial window size */ 1397 /* set initial window size */
1393 tt_winch (); 1398 tt_winch ();
1399
1400 sw_chld.start (SIGCHLD);
1394 1401
1395#ifndef __QNX__ 1402#ifndef __QNX__
1396 /* spin off the command interpreter */ 1403 /* spin off the command interpreter */
1397 switch (cmd_pid = fork ()) 1404 switch (cmd_pid = fork ())
1398 { 1405 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines