… | |
… | |
324 | #ifdef HAVE_AFTERIMAGE |
324 | #ifdef HAVE_AFTERIMAGE |
325 | asv = create_asvisual_for_id (dpy, display->screen, depth, XVisualIDFromVisual (visual), cmap, NULL); |
325 | asv = create_asvisual_for_id (dpy, display->screen, depth, XVisualIDFromVisual (visual), cmap, NULL); |
326 | #endif |
326 | #endif |
327 | free (r_argv); |
327 | free (r_argv); |
328 | |
328 | |
329 | bgPixmap.set_target (this); |
|
|
330 | |
|
|
331 | for (int i = NUM_RESOURCES; i--; ) |
329 | for (int i = NUM_RESOURCES; i--; ) |
332 | if (rs [i] == resval_undef) |
330 | if (rs [i] == resval_undef) |
333 | rs [i] = 0; |
331 | rs [i] = 0; |
334 | |
332 | |
335 | #if ENABLE_PERL |
333 | #if ENABLE_PERL |
… | |
… | |
484 | /*----------------------------------------------------------------------*/ |
482 | /*----------------------------------------------------------------------*/ |
485 | void |
483 | void |
486 | rxvt_term::init_env () |
484 | rxvt_term::init_env () |
487 | { |
485 | { |
488 | int i; |
486 | int i; |
489 | unsigned int u; |
|
|
490 | char *val; |
487 | char *val; |
491 | |
488 | |
492 | #ifdef DISPLAY_IS_IP |
489 | #ifdef DISPLAY_IS_IP |
493 | /* Fixup display_name for export over pty to any interested terminal |
490 | /* Fixup display_name for export over pty to any interested terminal |
494 | * 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 |
… | |
… | |
910 | #if ENABLE_FRILLS |
907 | #if ENABLE_FRILLS |
911 | if (option (Opt_borderLess)) |
908 | if (option (Opt_borderLess)) |
912 | { |
909 | { |
913 | if (XInternAtom (dpy, "_MOTIF_WM_INFO", True) == None) |
910 | if (XInternAtom (dpy, "_MOTIF_WM_INFO", True) == None) |
914 | { |
911 | { |
915 | /* 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"); |
916 | attributes.override_redirect = true; |
913 | attributes.override_redirect = true; |
917 | mwmhints.flags = 0; |
|
|
918 | } |
914 | } |
919 | else |
915 | else |
920 | { |
916 | { |
921 | mwmhints.flags = MWM_HINTS_DECORATIONS; |
917 | mwmhints.flags = MWM_HINTS_DECORATIONS; |
922 | mwmhints.decorations = 0; |
|
|
923 | } |
918 | } |
924 | } |
919 | } |
925 | else |
|
|
926 | mwmhints.flags = 0; |
|
|
927 | #endif |
920 | #endif |
928 | |
921 | |
929 | #if ENABLE_XEMBED |
922 | #if ENABLE_XEMBED |
930 | if (rs[Rs_embed]) |
923 | if (rs[Rs_embed]) |
931 | { |
924 | { |
… | |
… | |
1041 | vt_emask |= Button1MotionMask | Button3MotionMask; |
1034 | vt_emask |= Button1MotionMask | Button3MotionMask; |
1042 | |
1035 | |
1043 | vt_select_input (); |
1036 | vt_select_input (); |
1044 | |
1037 | |
1045 | vt_ev.start (display, vt); |
1038 | vt_ev.start (display, vt); |
1046 | |
|
|
1047 | #ifdef XPM_BACKGROUND |
|
|
1048 | if (rs[Rs_backgroundPixmap] != NULL) |
|
|
1049 | { |
|
|
1050 | const char *p = rs[Rs_backgroundPixmap]; |
|
|
1051 | |
|
|
1052 | if ((p = strchr (p, ';')) != NULL) |
|
|
1053 | { |
|
|
1054 | p++; |
|
|
1055 | bgPixmap.handle_geometry (p); |
|
|
1056 | } |
|
|
1057 | else |
|
|
1058 | bgPixmap.set_defaultGeometry (); |
|
|
1059 | |
|
|
1060 | set_bgPixmap (rs[Rs_backgroundPixmap]); |
|
|
1061 | scr_touch (true); |
|
|
1062 | } |
|
|
1063 | #endif |
|
|
1064 | |
1039 | |
1065 | /* graphics context for the vt window */ |
1040 | /* graphics context for the vt window */ |
1066 | gcvalue.foreground = pix_colors[Color_fg]; |
1041 | gcvalue.foreground = pix_colors[Color_fg]; |
1067 | gcvalue.background = pix_colors[Color_bg]; |
1042 | gcvalue.background = pix_colors[Color_bg]; |
1068 | gcvalue.graphics_exposures = 0; |
1043 | gcvalue.graphics_exposures = 0; |