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.199 by sasha, Fri Aug 3 22:40:10 2007 UTC vs.
Revision 1.207 by ayin, Mon Aug 27 18:30:59 2007 UTC

166#endif 166#endif
167#ifdef KEEP_SCROLLCOLOR 167#ifdef KEEP_SCROLLCOLOR
168 COLOR_SCROLLBAR, 168 COLOR_SCROLLBAR,
169 COLOR_SCROLLTROUGH, 169 COLOR_SCROLLTROUGH,
170#endif /* KEEP_SCROLLCOLOR */ 170#endif /* KEEP_SCROLLCOLOR */
171#if TINTING 171#if ENABLE_TRANSPARENCY
172 NULL, 172 NULL,
173#endif 173#endif
174#if OFF_FOCUS_FADING 174#if OFF_FOCUS_FADING
175 "rgb:00/00/00", 175 "rgb:00/00/00",
176#endif 176#endif
204#ifdef HAVE_BG_PIXMAP 204#ifdef HAVE_BG_PIXMAP
205#ifdef HAVE_AFTERIMAGE 205#ifdef HAVE_AFTERIMAGE
206 bgPixmap.original_asim = NULL; 206 bgPixmap.original_asim = NULL;
207#endif 207#endif
208 /* bgPixmap.w = bgPixmap.h = 0; */ 208 /* bgPixmap.w = bgPixmap.h = 0; */
209#ifdef XPM_BACKGROUND
209 bgPixmap.h_scale = bgPixmap.v_scale = 0; 210 bgPixmap.h_scale = bgPixmap.v_scale = 0;
210 bgPixmap.h_align = bgPixmap.v_align = 0; 211 bgPixmap.h_align = bgPixmap.v_align = 0;
212#endif
211 bgPixmap.flags = 0; 213 bgPixmap.flags = 0;
212 bgPixmap.pixmap = None; 214 bgPixmap.pixmap = None;
213#endif 215#endif
214
215 last_bot = last_state = -1; 216 last_bot = last_state = -1;
216 217
217 set_option (Opt_scrollBar); 218 set_option (Opt_scrollBar);
218 set_option (Opt_scrollTtyOutput); 219 set_option (Opt_scrollTtyOutput);
219 set_option (Opt_jumpScroll); 220 set_option (Opt_jumpScroll);
481/*----------------------------------------------------------------------*/ 482/*----------------------------------------------------------------------*/
482void 483void
483rxvt_term::init_env () 484rxvt_term::init_env ()
484{ 485{
485 int i; 486 int i;
486 unsigned int u;
487 char *val; 487 char *val;
488 488
489#ifdef DISPLAY_IS_IP 489#ifdef DISPLAY_IS_IP
490 /* Fixup display_name for export over pty to any interested terminal 490 /* Fixup display_name for export over pty to any interested terminal
491 * clients via "ESC[7n" (e.g. shells). Note we use the pure IP number 491 * clients via "ESC[7n" (e.g. shells). Note we use the pure IP number
907#if ENABLE_FRILLS 907#if ENABLE_FRILLS
908 if (option (Opt_borderLess)) 908 if (option (Opt_borderLess))
909 { 909 {
910 if (XInternAtom (dpy, "_MOTIF_WM_INFO", True) == None) 910 if (XInternAtom (dpy, "_MOTIF_WM_INFO", True) == None)
911 { 911 {
912 /* print_warning("Window Manager does not support MWM hints. Bypassing window manager control for borderless window.\n");*/ 912 // rxvt_warn("Window Manager does not support MWM hints. Bypassing window manager control for borderless window.\n");
913 attributes.override_redirect = true; 913 attributes.override_redirect = true;
914 mwmhints.flags = 0;
915 } 914 }
916 else 915 else
917 { 916 {
918 mwmhints.flags = MWM_HINTS_DECORATIONS; 917 mwmhints.flags = MWM_HINTS_DECORATIONS;
919 mwmhints.decorations = 0;
920 } 918 }
921 } 919 }
922 else
923 mwmhints.flags = 0;
924#endif 920#endif
925 921
926#if ENABLE_XEMBED 922#if ENABLE_XEMBED
927 if (rs[Rs_embed]) 923 if (rs[Rs_embed])
928 { 924 {
1038 vt_emask |= Button1MotionMask | Button3MotionMask; 1034 vt_emask |= Button1MotionMask | Button3MotionMask;
1039 1035
1040 vt_select_input (); 1036 vt_select_input ();
1041 1037
1042 vt_ev.start (display, vt); 1038 vt_ev.start (display, vt);
1043
1044#ifdef XPM_BACKGROUND
1045 if (rs[Rs_backgroundPixmap] != NULL)
1046 {
1047 const char *p = rs[Rs_backgroundPixmap];
1048
1049 if ((p = strchr (p, ';')) != NULL)
1050 {
1051 p++;
1052 bgPixmap.handle_geometry (p);
1053 }
1054
1055 set_bgPixmap (rs[Rs_backgroundPixmap]);
1056 scr_touch (true);
1057 }
1058#endif
1059 1039
1060 /* graphics context for the vt window */ 1040 /* graphics context for the vt window */
1061 gcvalue.foreground = pix_colors[Color_fg]; 1041 gcvalue.foreground = pix_colors[Color_fg];
1062 gcvalue.background = pix_colors[Color_bg]; 1042 gcvalue.background = pix_colors[Color_bg];
1063 gcvalue.graphics_exposures = 0; 1043 gcvalue.graphics_exposures = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines