… | |
… | |
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 |
… | |
… | |
910 | #if ENABLE_FRILLS |
908 | #if ENABLE_FRILLS |
911 | if (option (Opt_borderLess)) |
909 | if (option (Opt_borderLess)) |
912 | { |
910 | { |
913 | if (XInternAtom (dpy, "_MOTIF_WM_INFO", True) == None) |
911 | if (XInternAtom (dpy, "_MOTIF_WM_INFO", True) == None) |
914 | { |
912 | { |
915 | /* print_warning("Window Manager does not support MWM hints. Bypassing window manager control for borderless window.\n");*/ |
913 | // rxvt_warn("Window Manager does not support MWM hints. Bypassing window manager control for borderless window.\n"); |
916 | attributes.override_redirect = true; |
914 | attributes.override_redirect = true; |
917 | mwmhints.flags = 0; |
|
|
918 | } |
915 | } |
919 | else |
916 | else |
920 | { |
917 | { |
921 | mwmhints.flags = MWM_HINTS_DECORATIONS; |
918 | mwmhints.flags = MWM_HINTS_DECORATIONS; |
922 | mwmhints.decorations = 0; |
|
|
923 | } |
919 | } |
924 | } |
920 | } |
925 | else |
|
|
926 | mwmhints.flags = 0; |
|
|
927 | #endif |
921 | #endif |
928 | |
922 | |
929 | #if ENABLE_XEMBED |
923 | #if ENABLE_XEMBED |
930 | if (rs[Rs_embed]) |
924 | if (rs[Rs_embed]) |
931 | { |
925 | { |
… | |
… | |
1041 | vt_emask |= Button1MotionMask | Button3MotionMask; |
1035 | vt_emask |= Button1MotionMask | Button3MotionMask; |
1042 | |
1036 | |
1043 | vt_select_input (); |
1037 | vt_select_input (); |
1044 | |
1038 | |
1045 | vt_ev.start (display, vt); |
1039 | 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 | |
1040 | |
1065 | /* graphics context for the vt window */ |
1041 | /* graphics context for the vt window */ |
1066 | gcvalue.foreground = pix_colors[Color_fg]; |
1042 | gcvalue.foreground = pix_colors[Color_fg]; |
1067 | gcvalue.background = pix_colors[Color_bg]; |
1043 | gcvalue.background = pix_colors[Color_bg]; |
1068 | gcvalue.graphics_exposures = 0; |
1044 | gcvalue.graphics_exposures = 0; |